note 12392 deleted from language.oop by vincent

From: Date: Thu, 11 Sep 2003 19:53:53 +0000
Subject: note 12392 deleted from language.oop by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56190@lists.php.net to get a copy of this message
Note Submitter: DanRichter.at.programmer.dot.net ---- If you get the impression that your constructor is not being called, remember the proper syntax for member variables: $this->foo. I spent about a half hour wondering why my constructor "wasn't being called", and finally found out that the variable assignments in the constructor were in the form of $foo = $bar, and so simply created transient variables. (Another possibility: remember that a subclass does not automatically call its parent class's constructor.)

« previous php.notes (#56190) next »