Help on zend_hash_update

From: Date: Wed, 23 Aug 2000 21:05:23 +0000
Subject: Help on zend_hash_update
Groups: php.dev 
Request: Send a blank email to php-dev+get-30425@lists.php.net to get a copy of this message
Hi Andrei, Sorry to get back to you, but you were the only one that helped me out with all the hash I'm having problems. I've created an object, that has a property called CurrentElement. I can read it easily inside the extension. Now, how can I update it? For example CurrentElement ++. The code is basically like that: zval *tmpVal; MAKE_STD_ZVAL(tmpVal); tmpVal->type = IS_LONG; tmpVal->value.lval = 1123; result = zend_hash_update (HASH_OF(*MyObject), "CurrentElement", strlen("CurrentElement") + 1, &tmpVal, sizeof(zval), NULL); Another question is regarding creating methods. This one I've posted on the php-dev and still didn't get any answer on that, if you have some time, and know how to solve it, please help me out. Thanks Gustavo Badauy

« previous php.dev (#30425) next »