I am using PHP 5.3.0 and have encountered something that might be a bug (in this case I will report it), or maybe I am - so I ask you to make sure.
When running this code:
<?php ini_set('upload_max_filesize', '10M'); echo ini_get('upload_max_filesize'), ", " , ini_get('post_max_size')
As a result, I:
2M, 8M
This is despite my php.ini installation being higher:
upload_max_filesize = 10M post_max_size = 10M
(happens only once)
Since the error occurs after setting the value, as well as setting it in php.ini, I tend to think that this is an error. Can someone confirm or tell me where I am going wrong?
Update : it seems that restarting Apache fixed this - I always thought that it does not need to be restarted if you changed php.ini.
php upload
Ross Jul 13 '09 at 10:22 2009-07-13 22:22
source share