#31449 [Opn->NoF]: Comparison of class with recursive references causes fatal
| From: | derick@php.net | Date: | Mon, 10 Jan 2005 07:14:18 +0000 |
| Subject: | #31449 [Opn->NoF]: Comparison of class with recursive references causes fatal | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71695@lists.php.net to get a copy of this message | ||
ID: 31449
Updated by: derick@php.net
Reported By: marcus at lastcraft dot com
-Status: Open
+Status: No Feedback
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5.0.1
New Comment:
If you don't want to test the latest version, we can't help.
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[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