|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patches63882.patch (last revision 2013-01-02 18:53 UTC by ab@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-02 18:53 UTC] ab@php.net
[2013-01-02 19:03 UTC] ab@php.net
[2013-01-02 19:21 UTC] ab@php.net
-Status: Open
+Status: Analyzed
[2013-01-07 06:15 UTC] pajoye@php.net
-Assigned To:
+Assigned To: dmitry
[2013-01-07 06:15 UTC] pajoye@php.net
[2013-01-09 07:34 UTC] dmitry@php.net
[2013-01-09 07:34 UTC] dmitry@php.net
-Status: Analyzed
+Status: Closed
[2013-01-09 07:35 UTC] dmitry@php.net
[2013-01-12 16:39 UTC] derick@php.net
[2014-10-07 23:20 UTC] stas@php.net
[2014-10-07 23:31 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 16:00:01 2025 UTC |
Description: ------------ The standard PHP object compare handler (zend_std_compare_objects) together with the == operator (compare_function) have no limit on nesting levels nor any anti- recursion protection. The array comparing function in compare_function does have this protection. It would be good to add it to the object standard compare handler as well. Test script: --------------- <?php class Test { public $x = 5; } $testobj1 = new Test; $testobj2 = new Test; $testobj1->x = $testobj1; $testobj2->x = $testobj2; $testobj1 == $testobj2; // Crash (stack exhaustion) Expected result: ---------------- PHP Fatal error: Nesting level too deep - recursive dependency? in test.php on line 9 Actual result: -------------- segmentation fault (core dumped)