gorazdr

Results 17 comments of gorazdr
trafficstars

#0 _zval_ptr_dtor (zval_ptr=0x7ffff7fcfd00) at /home/gorazd/Prejemi/php-5.5.5/Zend/zend_execute_API.c:426 #1 0x000000000057a5b8 in zend_hash_destroy (ht=0x7ffff7fcec38) at /home/gorazd/Prejemi/php-5.5.5/Zend/zend_hash.c:560 #2 0x000000000056c0e2 in _zval_dtor_func (zvalue=0x7ffff7fcece8) at /home/gorazd/Prejemi/php-5.5.5/Zend/zend_variables.c:45 #3 0x000000000055da30 in _zval_dtor (zvalue=0x7ffff7fcece8) at /home/gorazd/Prejemi/php-5.5.5/Zend/zend_variables.h:35 #4 i_zval_ptr_dtor (zval_ptr=0x7ffff7fcece8) at...

Code adds strings into hashtabe ``` int *oidx, nidx; if (zend_hash_find(ht, str, len, (void **)&oidx) == SUCCESS) { encodeU29(ss, *oidx

So I need to make hash of zval loop elements of hash and copy them to empty hash run encodeValue and then do reverse and add hash to zval?

OK Thanks for now. You have helped me allot.:)

PHP_FUNCTION(amf3_encode) { smart_str ss = { 0 }; zval *val, *sht, *oht, *tht; long opts = 0; HashTable sht_ht, oht_ht, tht_ht; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &val, &sht, &oht, &tht, &opts)...

Yes that is the reason I am trying to change the extension.

I would like to use it like this: public function writeArray_n(&$data) { ``` $this->_stream->writeBytes(amf3_encode($data,$this->_referenceStrings, $this->_referenceObjects, $this->_referenceDefinitions, 0)) ; } ``` original use was like this: public function writeArray_n(&$data) { ```...