[PHP-DEV] Bug #1473: String assignement in class From: andraax <email protected>
Date: 05/30/99

From: andraax <email protected>
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 <email protected>
For help: php-dev-help <email protected>