Add PHP "native" class in extension

From: Date: Thu, 07 Sep 2000 07:22:55 +0000
Subject: Add PHP "native" class in extension
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.dev 
Request: Send a blank email to php-dev+get-32495@lists.php.net to get a copy of this message
Is it possible to add a PHP "native" class through the extension mechanism? What I mean by "native" is that the class is built into PHP, so a programmer can do something like this (without having a .class or .inc file): <? obj = new nativeClass; obj->method1 (...); ?> On a similar note, how do I write an extension function which returns an object (with data and function encapsulated of course)? I know it can be done, since the DomXML extension does something like that. Just wondering if there is any good documentation on how to do it. Thanks and Regards,

« previous php.dev (#32495) next »