Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 /tests bug24773.phpt
| From: | Ilia Alshanetsky | Date: | Thu, 11 Dec 2003 23:52:52 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 /tests bug24773.phpt | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2100@lists.php.net to get a copy of this message | ||
On December 11, 2003 05:20 am, Andi Gutmans wrote:
> Guys,
>
> Please check if my new fix is OK. It was quite hard to fix it in an elegant
> way.
The fix works fine, however there is still discepency between unseting certain
string offsets. IMHO E_ERROR should be done in all invalid cases or not at
all. At present time only
$array = 'test';
unset($array["lvl1"]["lvl2"]["b"]);
Causes the error to appear all other instances such as:
$array = 123456;
unset($array["lvl1"]["lvl2"]["b"]);
$a="a";
unset($a["foobar"]);
the code fails silently.
Ilia