diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-07-24 12:51:36 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-07-24 12:51:36 +0800 |
commit | 1638a6e1186242c2fc35844cc1273031587cd2bb (patch) | |
tree | 63d58171f8050609e5c77a20143bba5728d0d3a0 /ext/mysqli/mysqli.c | |
parent | 4aada3993c0e99a06fe8eff1f9cc8903e8a937de (diff) | |
download | php-git-1638a6e1186242c2fc35844cc1273031587cd2bb.tar.gz |
Give a meaningful name
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r-- | ext/mysqli/mysqli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 6cc724f42e..4a32fb41ba 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -382,10 +382,10 @@ static int mysqli_object_has_property(zval *object, zval *member, int has_set_ex if ((p = zend_hash_find_ptr(obj->prop_handler, Z_STR_P(member))) != NULL) { switch (has_set_exists) { - case 2: + case ZEND_PROPERTY_EXISTS: ret = 1; break; - case 1: { + case ZEND_PROPERTY_HAS: { zval rv; zval *value = mysqli_read_property(object, member, BP_VAR_IS, cache_slot, &rv); if (value != &EG(uninitialized_zval)) { @@ -394,7 +394,7 @@ static int mysqli_object_has_property(zval *object, zval *member, int has_set_ex } break; } - case 0:{ + case ZEND_PROPERTY_ISSET: { zval rv; zval *value = mysqli_read_property(object, member, BP_VAR_IS, cache_slot, &rv); if (value != &EG(uninitialized_zval)) { |