summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-05-25 12:47:43 +0300
committerDmitry Stogov <dmitry@zend.com>2017-05-25 12:47:43 +0300
commit27e7aea4124ffdecb6d40a2f5723e413a7b40562 (patch)
tree339f9ea525134eafc552fc7f7d4900b0dc656e1f /ext/standard/array.c
parent44ec732752a99334985759a569814bab05d95051 (diff)
downloadphp-git-27e7aea4124ffdecb6d40a2f5723e413a7b40562.tar.gz
"Countable" interface is moved from SPL to Core
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 2744ee3306..8968f4f821 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -813,7 +813,7 @@ PHP_FUNCTION(count)
}
}
/* if not and the object implements Countable we call its count() method */
- if (instanceof_function(Z_OBJCE_P(array), spl_ce_Countable)) {
+ if (instanceof_function(Z_OBJCE_P(array), zend_ce_countable)) {
zend_call_method_with_0_params(array, NULL, NULL, "count", &retval);
if (Z_TYPE(retval) != IS_UNDEF) {
RETVAL_LONG(zval_get_long(&retval));