diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-13 23:01:31 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-13 23:01:31 +0200 |
| commit | beda5093b490e80f631f14555bba7216c284a2c3 (patch) | |
| tree | 478c50552a9454dd2cff37a800f97d893d83a11a /ext/standard/array.c | |
| parent | f07e37c96dd395305fe81192f2edbc8860e41d5d (diff) | |
| download | php-git-beda5093b490e80f631f14555bba7216c284a2c3.tar.gz | |
Reverted to 5a0da281e5a9fa02db18b4822d8b103c65849fa9
Discussion: http://news.php.net/php.cvs/76836
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 f807bb5ad1..c2efca58fc 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); - Z_LVAL_P(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)); |
