diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2014-07-30 17:18:05 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2014-07-30 17:18:05 +0200 |
| commit | 354ee12b73dbe20d0c4fa7883eb34714f89109df (patch) | |
| tree | 9d392e4ed5daa05a5a56228ff170a05447c3c01e /ext/standard/array.c | |
| parent | f9258929201616750d418c629f7afdcfdab7dada (diff) | |
| download | php-git-354ee12b73dbe20d0c4fa7883eb34714f89109df.tar.gz | |
Revert "Fix bug #67064 in a BC safe way"
This reverts commit 1a4a9eede59b853f11e8e8b965e5f715f53da8f7.
Conflicts:
ext/standard/array.c
ext/standard/tests/array/bug67064.phpt
Diffstat (limited to 'ext/standard/array.c')
| -rw-r--r-- | ext/standard/array.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 2792b86f02..cca2f2583c 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -333,10 +333,7 @@ PHP_FUNCTION(count) #ifdef HAVE_SPL /* if not and the object implements Countable we call its count() method */ if (Z_OBJ_HT_P(array)->get_class_entry && instanceof_function(Z_OBJCE_P(array), spl_ce_Countable TSRMLS_CC)) { - zval *mode_zv; - MAKE_STD_ZVAL(mode_zv); - ZVAL_LONG(mode_zv, mode); - zend_call_method_with_1_params(&array, NULL, NULL, "count", &retval, mode_zv); + zend_call_method_with_0_params(&array, NULL, NULL, "count", &retval); if (retval) { convert_to_long_ex(&retval); RETVAL_LONG(Z_LVAL_P(retval)); |
