Re: String passed to object constructor turning into an instance of that object?
| From: | David Harkness | Date: | Thu, 16 Dec 2010 23:50:56 +0000 |
| Subject: | Re: String passed to object constructor turning into an instance of that object? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310093@lists.php.net to get a copy of this message | ||
I've never used the old-style constructors, but perhaps the semantics of
"parent::" changed and you need to instead use "$this->" as in
$this->Tag("option", $name);
That's a total guess. I don't have 5.2 handy to try it out, but both work in
5.3 using a simple example. Can you post the constructor of one of the Tag
subclasses that work? Maybe we can find a common denominator.
David