summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2018-07-24 12:51:36 +0800
committerXinchen Hui <laruence@gmail.com>2018-07-24 12:51:36 +0800
commit1638a6e1186242c2fc35844cc1273031587cd2bb (patch)
tree63d58171f8050609e5c77a20143bba5728d0d3a0 /ext/standard/array.c
parent4aada3993c0e99a06fe8eff1f9cc8903e8a937de (diff)
downloadphp-git-1638a6e1186242c2fc35844cc1273031587cd2bb.tar.gz
Give a meaningful name
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 28fbb5188d..c073d7d5ac 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -4110,8 +4110,8 @@ static inline zval *array_column_fetch_prop(zval *data, zval *name, zval *rv) /*
/* The has_property check is first performed in "exists" mode (which returns true for
* properties that are null but exist) and then in "has" mode to handle objects that
* implement __isset (which is not called in "exists" mode). */
- if (Z_OBJ_HANDLER_P(data, has_property)(data, name, 2, NULL)
- || Z_OBJ_HANDLER_P(data, has_property)(data, name, 0, NULL)) {
+ if (Z_OBJ_HANDLER_P(data, has_property)(data, name, ZEND_PROPERTY_EXISTS, NULL)
+ || Z_OBJ_HANDLER_P(data, has_property)(data, name, ZEND_PROPERTY_ISSET, NULL)) {
prop = Z_OBJ_HANDLER_P(data, read_property)(data, name, BP_VAR_R, NULL, rv);
if (prop) {
ZVAL_DEREF(prop);