ID:               41276
 Updated by:       [EMAIL PROTECTED]
 Reported By:      judas dot iscariote at gmail dot com
-Status:           Analyzed
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Irrelevant
 PHP Version:      Irrelevant
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2007-06-25 07:12:15] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2007-05-04 13:54:08] [EMAIL PROTECTED]

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-src/sapi/cgi/cgi_main.c

It was added here and moved from somewhere else:

http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=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/phpdoc/en/appendices/ini.xml?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

Reply via email to