[PHP-BUG] Bug #51533 [NEW]: [recursive reference In Array] Nesting level too deep
[email protected] ("neel dot basu dot z at gmail dot com") Sun, 11 Apr 2010 19:36:00 +0200 (CEST)
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From:
Operating system: Linux
PHP version: 5.3.2
Package: Scripting Engine problem
Bug Type: Bug
Bug description:[recursive reference In Array] Nesting level too deep
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
--
Edit bug report at http://bugs.php.net/bug.php?id=51533&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51533&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51533&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51533&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51533&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51533&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51533&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51533&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51533&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51533&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51533&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51533&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51533&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51533&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51533&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51533&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51533&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51533&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51533&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51533&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51533&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51533&r=mysqlcfg