|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-07 18:15 UTC] ms419 at freezone dot co dot uk
Description:
------------
ini_get('cgi.fix_pathinfo') is broken
I can tell from my php.ini & from the behavior of PHP that cgi.fix_pathinfo=1
However -
fis% /usr/lib/cgi-bin/php4
<?php
var_dump(ini_get('cgi.fix_pathinfo'));
?>
X-Powered-By: PHP/4.4.2-1+b1
Content-type: text/html
string(0) ""
fis%
Thanks - Jack
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 04:00:01 2025 UTC |
ini_get only works on items that have STD_PHP_INI_ entries, unfortunately the cgi module does not have that entry so you can't use ini_get. The only other solution is get_cfg_var ------------ test1 ~ # fgrep "cgi.fix_pathinfo" /etc/php/cgi-php5/php.ini cgi.fix_pathinfo = 1 test1 ~ # php-cgi <? var_dump(ini_get("cgi.fix_pathinfo")); ?> X-Powered-By: PHP/5.1.2-gentoo Content-type: text/html string(0) "" test1 gentoo-php-overlay # php-cgi <? var_dump(get_cfg_var("cgi.fix_pathinfo")); ?> X-Powered-By: PHP/5.1.2-gentoo Content-type: text/html string(1) "1" ------------