#31449 [Com]: Comparison of class with recursive references causes fatal
ID: 31449
Comment by: lsblsb at gmx dot de
Reported By: marcus at lastcraft dot com
Status: Assigned
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5.0.1
Assigned To: andi
New Comment:
There is a workaround for this problem:
Serialize the references you want to compare, and compare their
serialized versions.
Or - give your Objects id's and compare their references by their
id's.
Hope this helps.
Previous Comments:
------------------------------------------------------------------------
[2005-01-10 21:10:59] derick@php.net
This one is for the Zend mastahs... but I'm not sure if this is very
easy to fix.
------------------------------------------------------------------------
[2005-01-10 15:30:11] nospam at nospam dot com
C:\downloads\php5.0-win32-latest>php -v
PHP 5.0.4-dev (cli) (built: Jan 10 2005 10:20:12)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
C:\downloads\php5.0-win32-latest>php recursive.php
Fatal error: Nesting level too deep - recursive dependency? in
C:\downloads\php5
.0-win32-latest\recursive.php on line 10
C:\downloads\php5.0-win32-latest>
------------------------------------------------------------------------
[2005-01-10 08:14:17] derick@php.net
If you don't want to test the latest version, we can't help.
------------------------------------------------------------------------
[2005-01-10 04:25:49] marcus at lastcraft dot com
Hi...
Well thanks for the standard response in an attempt to stall. I had
enough trouble getting version 5.01 onto my Mandrake 9 box without
going through the whole thing again with an experimental version, and
then having to uninstall it. It would take several hours (possibly
days) out of my time, but for a developer with a CVS snapshot installed
it would take seconds. I could hardly have made the code shorter.
So in short, no thanks. Unless perhaps you have information that this
part of the code base has been worked on with respect to this issue?
yours, Marcus
------------------------------------------------------------------------
[2005-01-10 02:24:43] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31449
--
Edit this bug report at http://bugs.php.net/?id=31449&edit=1
Thread (9 messages)