From: RQuadling at GMail dot com Operating system: Irrelevant PHP version: 5.3CVS-2009-07-07 (CVS) PHP Bug Type: CGI related Bug description: php -i had different output to php --ini
Description: ------------ If the environment variable PHP_INI_SCAN_DIR is set, then php -i outputs the path and any ini files. If you enter php --ini the ini files are correct, but the scan directory is not. php --ini is only showing the PHP_CONFIG_FILE_SCAN_DIR value rather than the php_ini_scanned_path (which may be PHP_CONFIG_FILE_SCAN_DIR if there is no PHP_INI_SCAN_DIR envvar). Patch below Index: php_cli.c =================================================================== RCS file: /repository/php-src/sapi/cli/php_cli.c,v retrieving revision 1.211 diff -u -r1.211 php_cli.c --- php_cli.c 5 Jun 2009 18:50:10 -0000 1.211 +++ php_cli.c 7 Jul 2009 11:16:14 -0000 @@ -1360,7 +1360,7 @@ { zend_printf("Configuration File (php.ini) Path: %s\n", PHP_CONFIG_FILE_PATH); zend_printf("Loaded Configuration File: %s\n", php_ini_opened_path ? php_ini_opened_path : "(none)"); - zend_printf("Scan for additional .ini files in: %s\n", *PHP_CONFIG_FILE_SCAN_DIR ? PHP_CONFIG_FILE_SCAN_DIR : "(none)"); + zend_printf("Scan for additional .ini files in: %s\n", php_ini_scanned_path ? php_ini_scanned_path : "(none)"); zend_printf("Additional .ini files parsed: %s\n", php_ini_scanned_files ? php_ini_scanned_files : "(none)"); break; } -- Edit bug report at http://bugs.php.net/?id=48831&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48831&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48831&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48831&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48831&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48831&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48831&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48831&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48831&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48831&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48831&r=support Expected behavior: http://bugs.php.net/fix.php?id=48831&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48831&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48831&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48831&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48831&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48831&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48831&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48831&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48831&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48831&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48831&r=mysqlcfg