From 9a9ad56af0f80c69d363e8cfabe412da798c497d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 28 Nov 2016 12:54:47 +0300 Subject: Fixed bug #73586 (php_user_filter::$stream is not set to the stream the filter is working on). --- Zend/zend_hash.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Zend/zend_hash.h') diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index f4c2c30fbc..1be68c7d63 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -301,6 +301,16 @@ static zend_always_inline zval *zend_hash_str_find_ind(const HashTable *ht, cons } +static zend_always_inline int zend_hash_str_exists_ind(const HashTable *ht, const char *str, size_t len) +{ + zval *zv; + + zv = zend_hash_str_find(ht, str, len); + return zv && (Z_TYPE_P(zv) != IS_INDIRECT || + Z_TYPE_P(Z_INDIRECT_P(zv)) != IS_UNDEF); +} + + static zend_always_inline zval *zend_symtable_update(HashTable *ht, zend_string *key, zval *pData) { zend_ulong idx; -- cgit v1.2.1