| dmitry@php.net 2007-06-25, 4:02 am |
| ID: 41276
Updated by: dmitry@php.net
Reported By: judas dot iscariote at gmail dot com
Status: Analyzed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Most of cgi... settings work only on request startup befor any PHP
code. So changing them in PHP script make no sense.
Since php 5.2.1 such options were made PHP_INI_SYSTEM.
Previous Comments:
------------------------------------------------------------------------
[2007-05-04 13:54:08] philip@php.net
Someone needs to figure out if at some point in time this changed or if
it has always been _SYSTEM which I'm guessing is the case. Some initial
research:
Currently it lives in cgi/cgi_main.c:
http://cvs.php.net/viewvc.cgi/php-s.../cgi/cgi_main.c
It was added here and moved from somewhere else:
http://cvs.php.net/viewvc.cgi/php-s...=1.302&r2=1.303
Where did it move from? It appears the entry (including the _ALL
information) was added to the manual by a commit based off the ini
scripts here:
http://cvs.php.net/viewvc.cgi/phpdo...r1=1.24&r2=1.25
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/iniupdate/
Whoever tackles this should deal with the other cgi.* ini entries too
because they all appear wrong (_ALL vs _SYSTEM). Try running the
iniupdate scripts again and see what happens.
------------------------------------------------------------------------
[2007-05-04 04:51:31] judas dot iscariote at gmail dot com
Description:
------------
PHP documentation says cgi.fix_pathinfo is PHP_INI_ALL, however the
code says it is PHP_INI_SYSTEM
Either the manual is wrong or there is a bug in the code ;)
Reproduce code:
---------------
var_dump(ini_set('cgi.fix_pathinfo',1));
Expected result:
----------------
either the old value displayed or the manual fixed ;)
Actual result:
--------------
bool(false) and script not doing what the manual says it should . :-)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41276&edit=1
|