felipe Sun, 08 Aug 2010 15:06:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=301990
Log: - Fixed bug #52539 (Calling function from rebound Closure causes crash) Bug: http://bugs.php.net/52539 (Assigned) Calling function from rebound Closure causes crash Changed paths: U php/php-src/trunk/Zend/zend_closures.c Modified: php/php-src/trunk/Zend/zend_closures.c =================================================================== --- php/php-src/trunk/Zend/zend_closures.c 2010-08-08 14:48:24 UTC (rev 301989) +++ php/php-src/trunk/Zend/zend_closures.c 2010-08-08 15:06:14 UTC (rev 301990) @@ -416,6 +416,7 @@ zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_elements(static_variables), NULL, ZVAL_PTR_DTOR, 0); zend_hash_apply_with_arguments(static_variables TSRMLS_CC, (apply_func_args_t)zval_copy_static_var, 1, closure->func.op_array.static_variables); } + closure->func.op_array.run_time_cache = NULL; (*closure->func.op_array.refcount)++; } else { /* verify that we aren't binding internal function to a wrong scope */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
