php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41276 cgi.fix_pathinfo is PHP_INI_SYSTEM manual says PHP_INI_ALL
Submitted: 2007-05-04 04:51 UTC Modified: 2007-06-25 22:59 UTC
From: judas dot iscariote at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2007-05-04 04:51 UTC] 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 . :-)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-04 13:54 UTC] 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-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-06-25 07:12 UTC] dmitry@php.net
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-06-25 22:59 UTC] didou@php.net
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.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=97c92c624563840bb93d19e41e658a61af89cc4a
Log: fix #41276 # thanks for the hint Dmitry
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 20:00:01 2025 UTC