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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to