diff options
| author | Márcio Almada <marcio3w@gmail.com> | 2016-04-17 04:27:15 -0400 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2016-04-21 01:22:28 +0200 |
| commit | 9f3eab44dfc99ac032dbfc84418925ee3adcd175 (patch) | |
| tree | d73c61fdd157be90114f21458c2e7a73c0ca4612 /Zend/zend_execute.c | |
| parent | 85867268fdae2b742ce44bc76b7b57053d5063a8 (diff) | |
| download | php-git-9f3eab44dfc99ac032dbfc84418925ee3adcd175.tar.gz | |
allow null coalescing (??) on constant expressions
Diffstat (limited to 'Zend/zend_execute.c')
| -rw-r--r-- | Zend/zend_execute.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 8253fd5d85..324cf82e2b 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1912,6 +1912,12 @@ ZEND_API void zend_fetch_dimension_by_zval(zval *result, zval *container, zval * zend_fetch_dimension_address_read_R(result, container, dim, IS_TMP_VAR); } +ZEND_API void zend_fetch_dimension_by_zval_is(zval *result, zval *container, zval *dim, int dim_type) +{ + zend_fetch_dimension_address_read(result, container, dim, dim_type, BP_VAR_IS, 1); +} + + static zend_always_inline void zend_fetch_property_address(zval *result, zval *container, uint32_t container_op_type, zval *prop_ptr, uint32_t prop_op_type, void **cache_slot, int type) { if (container_op_type != IS_UNUSED && UNEXPECTED(Z_TYPE_P(container) != IS_OBJECT)) { |
