Skip to content

Commit 354ee12

Browse files
committed
Revert "Fix bug #67064 in a BC safe way"
This reverts commit 1a4a9ee. Conflicts: ext/standard/array.c ext/standard/tests/array/bug67064.phpt
1 parent f925892 commit 354ee12

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

NEWS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ PHP NEWS
33
?? ??? 2014, PHP 5.6.0 Release Candidate 4
44

55
- Core:
6-
. Fixed bug #67693 (incorrect push to the empty array) (Tjerk)
6+
. Fixed bug #67693 (incorrect push to the empty array). (Tjerk)
7+
8+
- SPL:
9+
. Revert fix for bug #67064 (BC issues). (Bob)
710

811
31 Jul 2014, PHP 5.6.0 Release Candidate 3
912

ext/standard/array.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,7 @@ PHP_FUNCTION(count)
333333
#ifdef HAVE_SPL
334334
/* if not and the object implements Countable we call its count() method */
335335
if (Z_OBJ_HT_P(array)->get_class_entry && instanceof_function(Z_OBJCE_P(array), spl_ce_Countable TSRMLS_CC)) {
336-
zval *mode_zv;
337-
MAKE_STD_ZVAL(mode_zv);
338-
ZVAL_LONG(mode_zv, mode);
339-
zend_call_method_with_1_params(&array, NULL, NULL, "count", &retval, mode_zv);
336+
zend_call_method_with_0_params(&array, NULL, NULL, "count", &retval);
340337
if (retval) {
341338
convert_to_long_ex(&retval);
342339
RETVAL_LONG(Z_LVAL_P(retval));

ext/standard/tests/array/bug67064.phpt

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)