Re: Missing __toString() part
| From: | Derick Rethans | Date: | Sun, 04 Jun 2006 15:41:53 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23935@lists.php.net to get a copy of this message | ||
On Sun, 4 Jun 2006, Andi Gutmans wrote:
> Yes, I realize that but it doesn't happen today and I don't think we couldn't
> make this a rule (requiring extensions to have unique id's per classes). In
> any case, we can always make it the following string:
> "id=<ht table address in hex>#unique id"
And that is exactly what Marcus already suggested:
char * hash;
int len = spprintf(&hash,0,"%p:%d",Z_OBJ_HT_P(zobj),Z_OBJ_HANDLE_P(zobj));
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org