note 27367 deleted from internals2.ze1.zendapi by cmb

From: Date: Sun, 10 Jan 2021 13:25:39 +0000
Subject: note 27367 deleted from internals2.ze1.zendapi by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216120@lists.php.net to get a copy of this message
Note Submitter: jo-shi at web dot de ---- 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 */

« previous php.notes (#216120) next »