diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2013-11-06 22:21:07 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2013-11-06 22:21:07 +0400 |
| commit | 9647c61dc101b9d460259fedb3731026f0390eeb (patch) | |
| tree | c002ea1be17965f999c1b801b48dbfd3788c962d /Zend/zend_builtin_functions.c | |
| parent | af600c240d2efe33291e8dd71ce228b9fbc849c1 (diff) | |
| download | php-git-9647c61dc101b9d460259fedb3731026f0390eeb.tar.gz | |
Constant expressions refactoring
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 049864c54a..d779e8a5ee 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -946,7 +946,7 @@ static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value /* this is necessary to make it able to work with default array * properties, returned to user */ - switch (IS_CONSTANT_TYPE(Z_TYPE_P(prop_copy))) { + if (IS_CONSTANT_TYPE(Z_TYPE_P(prop_copy))) { zval_update_constant(&prop_copy, 0 TSRMLS_CC); } |
