summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-04-14 17:58:58 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-04-14 17:58:58 +0200
commitf3e124d58dc4627eb89625a7c264cb009130f725 (patch)
treec256b36decc201ef6eb780b4ff80f5a97c7b5b42 /Zend/zend_hash.h
parent4f07330e798a4e7b12bcc1811c3c71d17b71f22c (diff)
parentb4a142ab974747be2fd03d055b30c63286a687fd (diff)
downloadphp-git-f3e124d58dc4627eb89625a7c264cb009130f725.tar.gz
Merge branch 'coroutineDelegation' of https://github.com/bwoebi/php-src
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 3461925de6..9dec40d57a 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -578,6 +578,15 @@ static zend_always_inline void *zend_hash_str_update_mem(HashTable *ht, const ch
return zend_hash_str_update_ptr(ht, str, len, p);
}
+static zend_always_inline void *zend_hash_index_add_ptr(HashTable *ht, zend_ulong h, void *pData)
+{
+ zval tmp, *zv;
+
+ ZVAL_PTR(&tmp, pData);
+ zv = zend_hash_index_add(ht, h, &tmp);
+ return zv ? Z_PTR_P(zv) : NULL;
+}
+
static zend_always_inline void *zend_hash_index_update_ptr(HashTable *ht, zend_ulong h, void *pData)
{
zval tmp, *zv;