diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-10-02 08:27:19 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-10-02 08:27:19 +0000 |
commit | 19d7fed62dff26ff6118aefe8fa8b7d3d0d31fcf (patch) | |
tree | a69f13d55bccff5bdd6e8075e2b5e7fe0fdc5f7f /Zend/zend_execute_API.c | |
parent | 04e7a855186a94b0dcc55646ed5e89a7f79cb163 (diff) | |
download | php-git-19d7fed62dff26ff6118aefe8fa8b7d3d0d31fcf.tar.gz |
Fixed bug #42819 (namespaces in indexes of constant arrays)
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 3e2ba09ed3..55a7351ab0 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -550,7 +550,7 @@ ZEND_API int zval_update_constant_ex(zval **pp, void *arg, zend_class_entry *sco zend_hash_move_forward(Z_ARRVAL_P(p)); continue; } - if (!zend_u_get_constant_ex(ZEND_STR_TYPE, str_index, str_index_len-1, &const_value, scope, 0 TSRMLS_CC)) { + if (!zend_u_get_constant_ex(ZEND_STR_TYPE, str_index, str_index_len-1, &const_value, scope, (*element)->idx_type TSRMLS_CC)) { if ((UG(unicode) && (colon.u = u_memchr(str_index.u, ':', str_index_len-1)) && colon.u[1] == ':') || (!UG(unicode) && (colon.s = memchr(str_index.s, ':', str_index_len-1)) && colon.s[1] == ':')) { zend_error(E_ERROR, "Undefined class constant '%v'", str_index); |