|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-11 19:38 UTC] neel dot basu dot z at gmail dot com
[2011-07-02 00:36 UTC] trefighter2334 at aol dot com
[2012-02-08 10:56 UTC] herb at bobbingwide dot com
[2015-06-08 20:02 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2015-06-08 20:02 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 06:00:01 2025 UTC |
Description: ------------ When there is recursive reference in an array comparison yields Fatal Error. Both == and === operators yields the same. //------- If It is not a Bug then Recursion Detection is IMPOSSIBLE in PHP. cause spl_object_hash() doesn't work on array or scaler types. Test script: --------------- <?php error_reporting(255); ini_set('display_errors','On'); header('Content-Type: text/plain'); $a = array(); $a[0] = &$a; var_dump($a === $a[0]); var_dump($a == $a[0]); ?> Expected result: ---------------- boolean true or false Actual result: -------------- Fatal error: Nesting level too deep - recursive dependency? in /Server/http/php-bugs/nesting.php on line 8