ID: 41209 User updated by: christian dot kaps at imaxx21 dot com Reported By: christian dot kaps at imaxx21 dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Ubuntu 7.04 Server PHP Version: 5.2.1 New Comment:
I have it tested on my gentoo box at home and the error doesn`t occour. It is probably a ubuntu problem!? Next time when is submit a bug I will first try it at home (o; Previous Comments: ------------------------------------------------------------------------ [2007-04-27 07:33:32] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip I can\'t reproduce it. Please add a gdb backtrace in case you can reproduce it. ------------------------------------------------------------------------ [2007-04-27 07:23:16] christian dot kaps at imaxx21 dot com Description: ------------ I get the message 'child pid 13149 exit signal Segmentation fault (11)' in my apache logs. The problem occurs when i use the following code. Reproduce code: --------------- <?php class env { public function __construct() { set_error_handler(array(__CLASS__, 'errorHandler')); } public static function errorHandler($errno, $errstr, $errfile, $errline) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } } class cache implements ArrayAccess { private $container = array(); public function offsetGet($id) {} public function offsetSet($id, $value) {} public function offsetUnset($id) {} public function offsetExists($id) { return isset($this->containers[(string) $id]); } } $env = new env(); $cache = new cache(); var_dump(isset($cache[$id])); ?> Expected result: ---------------- Fatal error: Uncaught exception 'ErrorException' with message 'Undefined variable: id' Actual result: -------------- child pid 13149 exit signal Segmentation fault (11) in error.log ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41209&edit=1
