|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-02-22 14:36 UTC] typo3 at maltejansen dot de
Description:
------------
set_error_handler() using set_error_handler. The bug occured first in php5.3alpha2. In php5.3alpha3 it seemed to be solved. But in beta1 it's there again.
(I could not find the old bug.) So please link it to the other one.
Reproduce code:
---------------
class ErrorHandler {
public function __construct() {
set_error_handler(array($this, 'handleError'));
}
...
}
Expected result:
----------------
Should not crash.
Actual result:
--------------
Crash.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 04:00:01 2025 UTC |
This is what I get: C:\php-sdk\php53\vc9\x86\PHP_5_3>release\php 47473.php Warning: set_error_handler() expects the argument (ErrorHandler::handleError) to be a valid callback in C:\php-sdk\php53\vc9\x86\PHP_5_3\47473.php on line 4 Notice: foo in C:\php-sdk\php53\vc9\x86\PHP_5_3\47473.php on line 9 using: <?php class ErrorHandler { public function __construct() { set_error_handler(array($this, 'handleError')); } } $a = new ErrorHandler; trigger_error('foo'); Please provide a full working script to reproduce the crash. A full working script I can copy/paste and use it directly. Please try with 5.3.0RC4 as well :)