ID: 6239
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproduceable crash
PHP Version: 4.0 Latest CVS (18/08/2000)
Assigned To: 
Comments:

<?php

class object1 {
  var $a;
  var $b;
  var $c;
}

$obj = new object1();
$obj2 = new object1();


$obj->a='1';
$obj->b='2';

$obj2->b='2';
$obj2->a='1';
$obj2->c=&$obj;
$obj->c=&$obj2;
                
echo ($obj==$obj2)?1:2;
echo ($obj===$obj2)?1:2;

?>

still causes a stack overflow error. Perhaps we need to limit the depth the comparison 
follows too.

Previous Comments:
---------------------------------------------------------------------------

[2000-12-30 12:04:15] [EMAIL PROTECTED]
And crashes with Linux too..

--Jani

---------------------------------------------------------------------------

[2000-11-27 06:22:51] [EMAIL PROTECTED]
no, still crashes w latest cvs

---------------------------------------------------------------------------

[2000-11-27 05:25:07] [EMAIL PROTECTED]
Isn't this fixed already?

--Jani

---------------------------------------------------------------------------

[2000-08-18 17:01:17] [EMAIL PROTECTED]
Confirmed on latest CVS. Will look into it.

---------------------------------------------------------------------------

[2000-08-18 11:44:10] [EMAIL PROTECTED]
got another one ;)
of course this example is *extremely* different from my
example and I donīt know how we could handle circular
references in ordered and unordered comparisions with ease,
but *it should not crash* (taken from zeev) although itīd
expect it to... :)

$obj->a='1';
$obj->b='2';

$obj2->b='2';
$obj2->a='1';
$obj2->c=&$obj;
$obj->c=&$obj2;
                
echo $obj==$obj2;
echo $obj===$obj2;

---------------------------------------------------------------------------

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6239&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to