From: Andi Gutmans Date: Tue, 5 Feb 2002 20:43:49 +0000 (+0000) Subject: - Add TSRMLS_FETCH()'s needed for the new object overloading in ZE2. X-Git-Tag: php-4.2.0RC1~415 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=284eaf34cc525a099c94bf99cfec431cbd933033;p=php - Add TSRMLS_FETCH()'s needed for the new object overloading in ZE2. --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 069d8f3093..d80ac32507 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -237,8 +237,10 @@ int php_count_recursive(zval *array, long mode) { long cnt = 0; zval **element; - HashTable *target_hash; + + TSRMLS_FETCH(); + target_hash = HASH_OF(array); if (Z_TYPE_P(array) == IS_ARRAY) diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index c7e31dad4a..184103b2df 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -548,6 +548,7 @@ static void php_wddx_serialize_array(wddx_packet *packet, zval *arr) char tmp_buf[WDDX_BUF_LEN]; ulong ind = 0; int type; + TSRMLS_FETCH(); target_hash = HASH_OF(arr);