#31449 [Fbk->Opn]: Comparison of class with recursive references causes fatal
ID: 31449
User updated by: marcus at lastcraft dot com
Reported By: marcus at lastcraft dot com
-Status: Feedback
+Status: Open
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5.0.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2005-01-08 05:31:19] marcus at lastcraft dot com
Description:
------------
Hi...
The script below causes a fatal error. This is just the simplest
example I could find of a whole class of these problems. Makes
comparing any object problematical.
yours, Marcus
Reproduce code:
---------------
<?php
class Recursive {
private $me;
function __construct() {
$this->me = $this;
}
}
new Recursive() != new Recursive();
?>
Expected result:
----------------
Nothing as the comparison is not output.
Actual result:
--------------
Fatal error with nesting too deep.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31449&edit=1
Thread (9 messages)