RE: [PHP-DEV] how-to get array[0] and array["name"] to actually r eference only 1 value?

From: Date: Mon, 12 Feb 2001 09:48:26 +0000
Subject: RE: [PHP-DEV] how-to get array[0] and array["name"] to actually r eference only 1 value?
Groups: php.dev 
Request: Send a blank email to php-dev+get-46415@lists.php.net to get a copy of this message
OK, zend_hash_find and zend_hash_index_find do the trick... Cheerio, Marc. >This leads me to another question: how do I obtain the x_ptr (from the example) if the zend_hash_update was done elsewhere and no ptr was passed then??? > zend_hash_update(return_value->value.obj.properties, "x", > sizeof("x"), &value, sizeof(zval *), NULL); > [...] > // How do I get the x_ptr ??? > zend_hash_update(return_value->value.obj.properties, "y", > sizeof("y"), &dummy, sizeof(zval *), (void **) &y_ptr); > zend_assign_to_variable_reference(NULL, y_ptr, x_ptr, NULL ELS_CC);

« previous php.dev (#46415) next »