From: Antony Dovgal Date: Tue, 29 Jul 2008 07:29:22 +0000 (+0000) Subject: add TSRMLS_DC and fix crash in ZTS mode X-Git-Tag: BEFORE_HEAD_NS_CHANGE~986 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d23d92e077068a713412707da70304ea1d23d837;p=php add TSRMLS_DC and fix crash in ZTS mode --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7234a7ef12..37eedad031 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4565,15 +4565,13 @@ ZEND_METHOD(reflection_extension, getFunctions) } /* }}} */ -static int _addconstant(zend_constant *constant, int num_args, va_list args, zend_hash_key *hash_key) /* {{{ */ +static int _addconstant(zend_constant *constant TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key) /* {{{ */ { zval *const_val; zval *retval = va_arg(args, zval*); int number = va_arg(args, int); if (number == constant->module_number) { - TSRMLS_FETCH(); - ALLOC_ZVAL(const_val); *const_val = constant->value; zval_copy_ctor(const_val);