note 27367 added to zend.variables.object
| From: | jo-shi at web dot de | Date: | Tue, 03 Dec 2002 16:54:24 +0000 |
| Subject: | note 27367 added to zend.variables.object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40301@lists.php.net to get a copy of this message | ||
add_property_[*](*) overwrites existing values in your object:
ex:
var_dump($myobj);
object(objectname)(1){
["_myvalue"]=>int(23);
}
so in func1 i "add" a property again:
PHP_FUNCTION(func1){
add_property_long(getThis(),"_myvalue",32);
}
should (as expected) result
object(objectname)(1){
["_myvalue"]=>int(32);
}
/* annotation: getThis() is a function used by many extensions to find out the $this value in an
object */
--
http://www.php.net/manual/en/zend.variables.object.php
http://master.php.net/manage/user-notes.php?action=edit+27367
http://master.php.net/manage/user-notes.php?action=delete+27367
http://master.php.net/manage/user-notes.php?action=reject+27367