diff options
author | Andrei Zmievski <andrei@php.net> | 2006-02-23 18:06:47 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2006-02-23 18:06:47 +0000 |
commit | c009a4f361fdb97fc6296dab268c44c4793a61cc (patch) | |
tree | 06102e0077bbc33124b3eb7c9c85fe60430510bb /Zend/zend_compile.c | |
parent | 9f53c8e313fb92d9b53b6da1689c84f1628ea947 (diff) | |
download | php-git-c009a4f361fdb97fc6296dab268c44c4793a61cc.tar.gz |
Fix a bug where the default value for function argument could be an
array with array (!) keys.
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 5feda66bfe..f96fd44332 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3227,6 +3227,9 @@ void zend_do_add_static_array_element(znode *result, znode *offset, znode *expr) case IS_DOUBLE: zend_hash_index_update(result->u.constant.value.ht, (long)offset->u.constant.value.dval, &element, sizeof(zval *), NULL); break; + case IS_CONSTANT_ARRAY: + zend_error(E_ERROR, "Illegal offset type"); + break; } } else { zend_hash_next_index_insert(result->u.constant.value.ht, &element, sizeof(zval *), NULL); |