ID: 26675 Updated by: [EMAIL PROTECTED] Reported By: xi at ngs dot ru -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Debian 3.0 PHP Version: 5CVS-2003-12-19 (dev) New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-12-19 20:20:02] xi at ngs dot ru Description: ------------ The following code produces segfault using snapshot php5-200312191230. Reproduce code: --------------- <?php class A implements ArrayAccess { private $array = array(); public function offsetExists( $offset ) { return isset( $this->array[ $offset ] ); } public function offsetGet( $offset ) { return $this->array[ $offset ]; } public function offsetSet( $offset, $data ) { $this->array[ $offset ] = $data; } public function offsetUnset( $offset ) { unset( $this->array[ $offset ] ); } } $a = new A(); $a[] = 'Segfault here!'; ?> Expected result: ---------------- String added to $a Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26675&edit=1
