Re: Class::__construct() vs. $this->__construct()

From: Date: Wed, 30 Mar 2005 22:07:39 +0000
Subject: Re: Class::__construct() vs. $this->__construct()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36999@lists.php.net to get a copy of this message
On Wednesday 30 March 2005 01:50 pm, Joe Stump wrote: > Thoughts? > From a PHP4 constructor, it needs to be $this->__construct(), otherwise __construct() runs outside the context of the newly instantiated object (i.e. there's no $this to initialize). I'm not sure about the parent::__construct() use. Does anyone know if this a special case which allows use of $this, unlike other static calls?

Attachment: [application/pgp-signature]
« previous php.pear.dev (#36999) next »