|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-27 07:33 UTC] johannes@php.net
[2007-04-28 08:50 UTC] christian dot kaps at imaxx21 dot com
[2007-04-28 08:54 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 02:00:01 2025 UTC |
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