Bug #1473: String assignement in class

From: Date: Sun, 30 May 1999 16:06:33 +0000
Subject: Bug #1473: String assignement in class
Groups: php.dev 
Request: Send a blank email to php-dev+get-6308@lists.php.net to get a copy of this message
From: andraax@cybercable.fr Operating system: Linux 2.2.5-15 Redhat PHP version: 3.0.7 PHP Bug Type: Misbehaving function Bug description: String assignement in class let's see this code: class dummy{ var $yes ; var $no ; function dummy($y, $n ) { $this->$yes = $y ; $this->$no = $n ; print "Y=$y|YES=".$this->$yes."|N=$n|NO=".$this->$no."<BR>" ; } } $test = new dummy("ab", "cd") ; //OUPUT =Y=ab|YES=cd|N=cd|NO=cd !!! -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#6308) next »