ID:               37012
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ms419 at freezone dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: Debian
 PHP Version:      4.4.2
 New Comment:

This is intentional. Not a bug.


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

[2006-04-07 20:28:10] ms419 at freezone dot co dot uk

Thanks tony2001 & scottmacvicar

The PHP executable was using the correct php.ini file

Thanks very much for the information on STD_PHP_INI_ entries

get_cfg_var is a suitable workaround

Thanks again - Jack

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

[2006-04-07 18:37:57] scottmacvicar at ntlworld dot com

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"
------------

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

[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

Reply via email to