note 58241 deleted from language.oop5.overloading by nlopess

From: Date: Fri, 28 Oct 2005 18:11:51 +0000
Subject: note 58241 deleted from language.oop5.overloading by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97754@lists.php.net to get a copy of this message
Note Submitter: tobias_demuth at web dot de ---- @Dasko <dasko at mp dot pl>: The problem with private properties seems to be fixed in 5.05. The following code throws an error, as expected: <?php class Setter { private $hello; public function __set($name, $value) { echo "Called!<br/>"; return false; } } $set = new Setter(); $set->hello = 'Hi'; echo "<pre>"; print_r($set); echo "</pre>"; ?>

« previous php.notes (#97754) next »