Bus Error with restore_error_handler() in destructor
| From: | Timm Friebe | Date: | Tue, 11 May 2004 18:28:05 +0000 |
| Subject: | Bus Error with restore_error_handler() in destructor | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-9821@lists.php.net to get a copy of this message | ||
thekid@friebes:~/devel/php/tests > cat tick.php
<?php
class ErrorHandler {
function __construct() {
set_error_handler(array(&$this, 'handle'));
}
function __destruct() {
restore_error_handler();
}
function handle($code, $msg, $file, $line, $locals) {
}
}
new ErrorHandler();
?>
thekid@friebes:~/devel/php/tests > php-dev tick.php
Bus error (core dumped)
- Timm