Re: [PHP-DEV] Comparing objects on PHP5

2004-05-10 Thread Andi Gutmans
This should be fixed now. Basically in non-compatibility mode == does the same as PHP 4 (it compares object type and properties) and === compares object handles (this is because comparing object handles from our experience with Java isn't used that often and it's very useful to be able to use th

Re: [PHP-DEV] Comparing objects on PHP5

2004-05-09 Thread Marcus Boerger
Hello Rui, Monday, May 10, 2004, 1:24:33 AM, you wrote: > I performed the same test with HEAD (PHP 5.0.0RC3-dev (build: May 9 > 2004 10:16:50)). > There are no E_NOTICE message now, but, the problems are still existing with > RC2, > PHP 4.3.6 > same,not same,not same,same > same,not same,n

Re: [PHP-DEV] Comparing objects on PHP5

2004-05-09 Thread Rui Hirokawa
I performed the same test with HEAD (PHP 5.0.0RC3-dev (build: May 9 2004 10:16:50)). There are no E_NOTICE message now, but, the problems are still existing with RC2, PHP 4.3.6 same,not same,not same,same same,not same,not same,same PHP 5.0.0-CVS 2004/5/9 (ze1_compatibility_mode = Off) sam

Re: [PHP-DEV] Comparing objects on PHP5

2004-05-09 Thread Derick Rethans
On Sun, 9 May 2004, Andi Gutmans wrote: > Did you check HEAD? I fixed something to do with the comparison. if it > still doesn't work please let me know. Shouldn't this example return "1\n1" ? name = $name; } } $jurop = new Country; $dutchieland = new Country; $dutchiela

Re: [PHP-DEV] Comparing objects on PHP5

2004-05-09 Thread Andi Gutmans
Did you check HEAD? I fixed something to do with the comparison. if it still doesn't work please let me know. Andi At 04:43 PM 5/9/2004 +0900, Rui Hirokawa wrote: Hi, I think objects comparison in PHP5 has problems. Here is small sample code, v = 2; $e = $a; // value comparison echo $a == $b

[PHP-DEV] Comparing objects on PHP5

2004-05-09 Thread Rui Hirokawa
Hi, I think objects comparison in PHP5 has problems. Here is small sample code, v = 2; $e = $a; // value comparison echo $a == $b ? "same," : "not same,"; echo $a == $c ? "same," : "not same,"; echo $a == $d ? "same," : "not same,"; echo $a == $e ? "same" : "not same"; echo "\n"; // value