#49565 [Opn->Bgs]: same arrays (with recursion) comparison don't result "equals"
| From: | jani@php.net | Date: | Wed, 16 Sep 2009 07:33:22 +0000 |
| Subject: | #49565 [Opn->Bgs]: same arrays (with recursion) comparison don't result "equals" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142404@lists.php.net to get a copy of this message | ||
ID: 49565
Updated by: jani@php.net
Reported By: pierb1971 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Arrays related
Operating System: windows vista
PHP Version: 5.3.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2009-09-15 20:51:13] pierb1971 at yahoo dot com
Description:
------------
When comparing (with "===") a reference of an array (which as recursion
inside) with the original array itself, the result is not "equal" value
but display recursion error
Reproduce code:
---------------
$z =& $GLOBALS;
if ($z === $GLOBALS) {
print 'Equals';
} else {
print 'Not equals';
}
Expected result:
----------------
Equals
Actual result:
--------------
Fatal error: Nesting level too deep - recursive dependency? in <file
name> on line <line number>
Fatal error: Nesting level too deep - recursive dependency? in Unknown
on line 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49565&edit=1