|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-08 17:26 UTC] cataphract@php.net
-Status: Open
+Status: Feedback
[2012-03-08 17:26 UTC] cataphract@php.net
[2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 16:00:01 2025 UTC |
Description: ------------ There happens a "segmentation fault" while traversing big arrays with "foreach". A sample backtrace: /opt/uwsgi/uwsgi(uwsgi_backtrace+0x2a) [0x807981a] /opt/uwsgi/uwsgi(uwsgi_segfault+0x2c) [0x807990c] /lib/libc.so.6 [0xb7b02e28] /opt/php54/lib/libphp5.so(zend_object_std_dtor+0x88) [0xb6509948] /opt/php54/lib/libphp5.so(zend_objects_free_object_storage+0x12) [0xb6509982] /opt/php54/lib/libphp5.so(zend_objects_store_free_object_storage+0x78) [0xb650ed28] /opt/php54/lib/libphp5.so [0xb64e021c] /opt/php54/lib/libphp5.so [0xb64eb623] /opt/php54/lib/libphp5.so(php_request_shutdown+0x172) [0xb648fe52] ./php_plugin.so(uwsgi_php_request+0x1e0) [0xb7fb8e90] Seg-faulted code (probably with 100.000 items or more): foreach ($options as $item) { if ($item['value'] == $value) { return $item['label']; } } Expected result: ---------------- no segmentation fault Actual result: -------------- segmentation fault