|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-12-12 17:25 UTC] cmb@php.net
[2019-12-13 09:45 UTC] nikic@php.net
-Status: Open
+Status: Duplicate
[2019-12-13 09:45 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 06:00:01 2025 UTC |
Description: ------------ Call property_exists function in offsetExists method, ArrayObject raise Segmentation fault. Test script: --------------- <?php // OK (Handled with memory-size over.) // property_exists( // new class ([], \ArrayObject::ARRAY_AS_PROPS) extends \ArrayObject { // public function offsetExists($index) // { // return $this->offsetExists($index); // } // }, // 'foo' // ); // NG (SEGV) property_exists( new class ([], \ArrayObject::ARRAY_AS_PROPS) extends \ArrayObject { public function offsetExists($index) { return property_exists($this, $index); } }, 'foo' ); Expected result: ---------------- Fatal error: Allowed memory size of %d bytes exhausted (tried to allocate %d bytes) in %s on line %d Actual result: -------------- Segmentation fault