com php-src: This should be a real problem: ext/spl/spl_array .c
| From: | Dmitry Stogov | Date: | Sun, 02 Mar 2014 06:35:41 +0000 |
| Subject: | com php-src: This should be a real problem: ext/spl/spl_array .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77812@lists.php.net to get a copy of this message | ||
Commit: 05e8f285332d1af005e8e79daa052378e065d712
Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 14:35:41 +0800
Parents: 171fde54917d8144edba7c70a931091b1032e741
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=05e8f285332d1af005e8e79daa052378e065d712
Log:
This should be a real problem
Changed paths:
M ext/spl/spl_array.c
Diff:
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 506bee8..e69811b 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1412,6 +1412,7 @@ static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int
fnam
zval tmp, *arg = NULL;
zval retval;
+ // ??? how to pass aht as a reference to later method call?
array_init(&tmp);
zend_hash_copy(Z_ARRVAL(tmp), aht, (copy_ctor_func_t)zval_add_ref);