From:             ar...@php.net
Operating system: N/A
PHP version:      6SVN-2009-12-10 (SVN)
PHP Bug Type:     Scripting Engine problem
Bug description:  Fatal error thrown for removed ini directives isn't fatal

Description:
------------
The check for removed ini directives in php_module_startup (main/main.c)
was changed to use E_ERROR instead of E_WARNING:
http://svn.php.net/viewvc/php/php-src/trunk/main/main.c?r1=288037&r2=288038&;

Since it is run before module_initialized is set to 1, php_error_cb skips
the bailout.

If it's supposed to be fatal then it should be E_CORE_ERROR, as
README.UPDATING_TO_PHP6 says.

Reproduce code:
---------------
php -d register_globals=1 -r 'echo "hi\n";'

Expected result:
----------------
PHP Fatal error:  Directive 'register_globals' no longer exist in PHP 6
and greater in Unknown on line 0


Actual result:
--------------
PHP Fatal error:  Directive 'register_globals' no longer exist in PHP 6
and greater in Unknown on line 0
hi


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

Reply via email to