|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-13 04:15 UTC] laruence@php.net
[2015-08-13 04:15 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2015-08-18 16:24 UTC] ab@php.net
[2016-07-20 11:37 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Description: ------------ none Test script: --------------- <?php class A { public $arr; public function core() { $i = 0; while (1) { $this->arr[$i++ . "xxx"] = 1; } } } $a = new A; $a->core(); Expected result: ---------------- non segfault Actual result: -------------- $ sapi/cli/php /tmp/1.php PHP Fatal error: Allowed memory size of 134217728 bytes exhausted at /home/huixinchen/opensource/trunk/Zend/zend_hash.c:804 (tried to allocate 75497472 bytes) in /tmp/1.php on line 7 Fatal error: Allowed memory size of 134217728 bytes exhausted at /home/huixinchen/opensource/trunk/Zend/zend_hash.c:804 (tried to allocate 75497472 bytes) in /tmp/1.php on line 7 zend_mm_heap corrupted Segmentation fault (core dumped)