From:             RQuadling at GMail dot com
Operating system: Windows XP SP3
PHP version:      5.3CVS-2008-10-17 (snap)
PHP Bug Type:     PHP options/info functions
Bug description:  error_reporting ignored in php-cli.ini

Description:
------------
No matter what value I set in my php-cli.ini file for 
error_reporting, it is ignored.

Using PHP 5.3.0alpha3-dev (cli) (built: Oct 17 2008 12:03:10) from 
http://windows.php.net


In using ProcMon and looking for Processes like "PHP" and Path ending 
in ".INI", the only file I am looking at is C:\PHP\PHP5\INI\php-
cli.ini





Reproduce code:
---------------
<?php
$s_INI = file_get_contents(php_ini_loaded_file());
preg_match_all('`^error_reporting[^\r\n]++`sim', $s_INI, $a_Matches);

echo
  'php_sapi_name()         = ', php_sapi_name(), PHP_EOL,
  'phpversion()            = ', phpversion(), PHP_EOL,
  'php_ini_loaded_file()   = ', php_ini_loaded_file(), PHP_EOL,
  'php_ini_scanned_files() = ', php_ini_scanned_files(), PHP_EOL,
  'error_reporting()       = ', error_reporting(), PHP_EOL,
  'INI error_reporting     = ', $a_Matches[0][0], PHP_EOL;



Expected result:
----------------
php_sapi_name()         = cli
phpversion()            = 5.3.0alpha3-dev
php_ini_loaded_file()   = C:\PHP\PHP5\INI\php-cli.ini
php_ini_scanned_files() =
error_reporting()       = 65535
INI error_reporting     = error_reporting = 65535

Actual result:
--------------
php_sapi_name()         = cli
phpversion()            = 5.3.0alpha3-dev
php_ini_loaded_file()   = C:\PHP\PHP5\INI\php-cli.ini
php_ini_scanned_files() =
error_reporting()       = 22519
INI error_reporting     = error_reporting = 65535





-- 
Edit bug report at http://bugs.php.net/?id=46326&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46326&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46326&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46326&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46326&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46326&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46326&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46326&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46326&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46326&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46326&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46326&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46326&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46326&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46326&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46326&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46326&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46326&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46326&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46326&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46326&r=mysqlcfg

Reply via email to