]> granicus.if.org Git - php/commitdiff
fix for #29890 - part 2
authorStanislav Malyshev <stas@php.net>
Wed, 18 May 2005 18:10:24 +0000 (18:10 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 18 May 2005 18:10:24 +0000 (18:10 +0000)
Zend/zend.c

index 4371a94f75198350e80c4b42e0b4ab11e81cc15d..daab8eec03d40947d9feb59d5d71fa0fd6820864 100644 (file)
@@ -967,6 +967,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
                        z_context->value.ht = EG(active_symbol_table);
                        z_context->type = IS_ARRAY;
                        ZVAL_ADDREF(z_context); /* we don't want this one to be freed */
+                       z_context->is_ref = 1;
 
                        params = (zval ***) emalloc(sizeof(zval **)*5);
                        params[0] = &z_error_type;