Re: String passed to object constructor turning into aninstance of that object?

From: Date: Thu, 16 Dec 2010 22:42:59 +0000
Subject: Re: String passed to object constructor turning into aninstance of that object?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-310090@lists.php.net to get a copy of this message
It's acting as if Tag's constructor a) declares $name as a reference using &$name, and b) is assigning itself ($this) to $name for some (probably bad) reason. That's the only way I can see that $name inside SelectBoxOption's constructor could change from a string to an object. A peek at Tag's constructor could really clear things up. David

« previous php.general (#310090) next »