Re: [PHP4BETA] how to create an object from a module??

From: Date: Sat, 24 Apr 1999 22:16:36 +0000
Subject: Re: [PHP4BETA] how to create an object from a module??
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-469@lists.php.net to get a copy of this message
At 21:02 24/04/99 +0200, Thies C. Arntzen wrote: > >add_method(value, "save", php3_oci8_savedesc); > >no longer works.... You can't add methods to objects anymore - PHP 4.0 has classes and objects as two completely separate beings (as they should be). You first have to register a class, with all of the functions that you want that class to have, and then you can instanciate objects of that class using init_object_ex(). It would be best if you #if 0'd this code for now, since the API for easily manipulating classes and objects isn't yet ready, plus, member functions implemented as built-in functions (written in C) don't get access to $this, yet. It's something we'd work on in the near future. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta

« previous php.version4 (#469) next »