]> granicus.if.org Git - php/commitdiff
add TSRMLS_DC and fix crash in ZTS mode
authorAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 07:29:22 +0000 (07:29 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 29 Jul 2008 07:29:22 +0000 (07:29 +0000)
ext/reflection/php_reflection.c

index 7234a7ef12c7005fc853152ce7ce50e193b8859b..37eedad031c8e507de97061104239de2e75dd13d 100644 (file)
@@ -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);