Re: toString() and Object #ID

From: Date: Mon, 02 Jul 2007 17:46:58 +0000
Subject: Re: toString() and Object #ID
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-30408@lists.php.net to get a copy of this message
Stanislav Malyshev schrieb: > It does give the hash, which is unique for each object. In which form > would you expect object_get_id to return object's identity? PHP doesn't > have a type of "tuple of C pointer and long integer" ;) We could add a counter that gets incremented for each object that is created and associate that number with the object. Wouldn't that solve the problem (if there is one)? -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

« previous php.internals (#30408) next »