diff options
| author | Dmitry Stogov <dmitry@php.net> | 2011-02-14 08:46:53 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2011-02-14 08:46:53 +0000 |
| commit | b84967d3e2c85e2b20f86cf3cb05b10ea53cc939 (patch) | |
| tree | a9b573d5198807145193d3cd2641f58f673ba385 /Zend/zend_execute.c | |
| parent | f912a2d0879b9a66456b9c9040a15367abb2901f (diff) | |
| download | php-git-b84967d3e2c85e2b20f86cf3cb05b10ea53cc939.tar.gz | |
Fixed Bug #53971 (isset() and empty() produce apparently spurious runtime error)
Diffstat (limited to 'Zend/zend_execute.c')
| -rw-r--r-- | Zend/zend_execute.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 26de484f58..264ecefc14 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1258,7 +1258,9 @@ static void zend_fetch_dimension_address_read(temp_variable *result, zval **cont Z_TYPE_P(ptr) = IS_STRING; if (Z_LVAL_P(dim) < 0 || Z_STRLEN_P(container) <= Z_LVAL_P(dim)) { - zend_error(E_NOTICE, "Uninitialized string offset: %ld", Z_LVAL_P(dim)); + if (type != BP_VAR_IS) { + zend_error(E_NOTICE, "Uninitialized string offset: %ld", Z_LVAL_P(dim)); + } Z_STRVAL_P(ptr) = STR_EMPTY_ALLOC(); Z_STRLEN_P(ptr) = 0; } else { |
