php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63330 phpinfo() reports configuration that is not applicable
Submitted: 2012-10-22 11:46 UTC Modified: -
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:4 (100.0%)
From: eis at iki dot fi Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.3.18 OS: Windows/IIS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 23 = ?
Subscribe to this entry?

 
 [2012-10-22 11:46 UTC] eis at iki dot fi
Description:
------------
On windows, phpinfo() reports things set in the registry even though they are of 
type PHP_INI_PERDIR, so they are in fact not in effect, as documented in 
http://php.net/manual/en/configuration.changes.php. Notably upload_max_filesize 
and post_max_size are values that for example Plesk users keep hitting their heads 
with, as can be seen in these discussions:

http://stackoverflow.com/questions/11730198/php-post-max-size-local-value-
overridden-by-master-value-on-plesk-iis
http://stackoverflow.com/questions/13007906/php-upload-500-internal-server-
error/13008975

Tested on IIS 7.5 system.

Test script:
---------------
Set post_max_size on the registry. Check phpinfo() output.

Expected result:
----------------
post_max_value not having impact on phpinfo() as it is PHP_INI_PERDIR setting and 
has no impact on PHP.

Actual result:
--------------
post_max_value updated as per registry on phpinfo() output, even though not 
effecting PHP.

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 08:01:24 2019 UTC