Re: [PHP-DEV] do_declare_property() From: Andi Gutmans (andi <email protected>)
Date: 07/12/00

At 17:20 12/07/00 +0200, Mathieu Kooiman (ggInternet) wrote:
>You can find the class the object was instanctiated from right?
>(var_dump an object, you'll see..)
>
> class ThisIsAClass { }
> $ThisIsAnObject = new ThisIsAClass;
> var_dump($ThisIsAnObject)
>
>This is pretty much the same right as
> function foo (class MyObject $obj) { }
>
>You could use this in a C function..

Yes and it would be slooooooooow.
It should be detectable at compile-time and not run-time.

Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>