From:             ryh at poczta dot wp dot pl
Operating system: 
PHP version:      5.2.5
PHP Bug Type:     *General Issues
Bug description:  E_STRICT stops errors in __autoload() and terminates script

Description:
------------
Other example:

This should show that there is an error in file xx.php

Put the files in the same directory and run test.php
Then change to E_ALL and see the correct error alert.

Reproduce code:
---------------
File test.php
-----------------------
error_reporting(E_STRICT);

function autoload($class_name) {
    require_once Dirname(__FILE__).'/'.$class_name . '.php';
}
spl_autoload_register('autoload');

$obj  = new xx();

File xx.php
--------------------------
class xx {
        abstract function yy();
}

class zz extends zz {

}

Expected result:
----------------
Change to error_reporting to E_ALL and see the correct error alert.

Actual result:
--------------
Empty page.

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

Reply via email to