ID: 37012 Comment by: scottmacvicar at ntlworld dot com Reported By: ms419 at freezone dot co dot uk Status: Feedback Bug Type: PHP options/info functions Operating System: Debian PHP Version: 4.4.2 New Comment:
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" ------------ Previous Comments: ------------------------------------------------------------------------ [2006-04-07 18:26:14] [EMAIL PROTECTED] Make sure this particular PHP executable uses the same php.ini file. Hint: `php -i | grep php.ini` ------------------------------------------------------------------------ [2006-04-07 18:15:30] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37012&edit=1