Bug #63330 [NEW]: phpinfo() reports configuration that is not applicable
| From: | eis at iki dot fi | Date: | Mon, 22 Oct 2012 11:46:28 +0000 |
| Subject: | Bug #63330 [NEW]: phpinfo() reports configuration that is not applicable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-174225@lists.php.net to get a copy of this message | ||
From: eis at iki dot fi
Operating system: Windows/IIS
PHP version: 5.3.18
Package: PHP options/info functions
Bug Type: Bug
Bug description:phpinfo() reports configuration that is not applicable
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=63330&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63330&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63330&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63330&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63330&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63330&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63330&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63330&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63330&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63330&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63330&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63330&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63330&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63330&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63330&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63330&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63330&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63330&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63330&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63330&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63330&r=mysqlcfg