Re: Class constructors

From: Date: Fri, 14 Jul 2000 12:59:42 +0000
Subject: Re: Class constructors
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24524@lists.php.net to get a copy of this message
I don't reffer to PHP script code. I'm writing C code for a module to PHP. The definition of a destructor is: ZEND_CLASS_DTOR () The constructor? I have tryed to write a function with the same name as de class but it is not called when an object is created. Thanks Oriol Prat On Thu, 13 Jul 2000, Sterling Hughes wrote: > class SomeClass > { > function SomeClass (...) > { > // Here's your constructor > } > } > > > > Hello, > > I'm developing a module for PHP and I have not found the way to implement > > a class constructor. I have seen a class destructor definition but no a > > constructor class. > > There's a way to implement it? > > Thanks > > > > Oriol Prat > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#24524) next »