Re: [PHP-DEV] Reference equality between objects

2004-09-24 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello devs, On Friday 24 Sep 2004 09:39, Andrey Hristov wrote: > Hi, > can we have a macro that implements this equality check - whether > 2 zvals point to the same object? Would these do? Copied from a pretty borked ext, but still work :-) + sta

Re: [PHP-DEV] Reference equality between objects

2004-09-24 Thread Andrey Hristov
Hi, can we have a macro that implements this equality check - whether 2 zvals point to the same object? Andrey Andi Gutmans wrote: You also have to compare Z_OBJ_HT_P(objA) == Z_OBJ_HT_P(objB) in addition to Z_OBJ_HANDLE_P. After checking both of these your code will work. At 10:57 PM 9/23/2004

Re: [PHP-DEV] Reference equality between objects

2004-09-23 Thread Andi Gutmans
You also have to compare Z_OBJ_HT_P(objA) == Z_OBJ_HT_P(objB) in addition to Z_OBJ_HANDLE_P. After checking both of these your code will work. At 10:57 PM 9/23/2004 -0700, Robert Silva wrote: Just wondering if there is a better way to test for reference equality than what is listed below. zval *