Re: 5.4 regression: non-existent sub-sub keys now have values

From: Date: Thu, 24 Nov 2011 10:31:47 +0000
Subject: Re: 5.4 regression: non-existent sub-sub keys now have values
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-56562@lists.php.net to get a copy of this message
> > >> It gives me false in 5.3.6. Using it outside of isset() results in the >> fatal error. >> > > hm. > > tyrael@thor:~$ php -r '$string = > > "foo";isset($string["foo"]["bar"]["baz"]["0"]);'; > PHP Fatal error: Cannot use string offset as an array in Command line > code on line 1 > tyrael@thor:~$ php -v > PHP 5.3.8-1~dotdeb.2 with Suhosin-Patch (cli) (built: Aug 25 2011 13:30:46) > Copyright (c) 1997-2011 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies > with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH > > I will check this against a vanilla version, as there is a chance that > either dotdeb(less likely) or suhosin patched something. > I just remembered that there is http://codepad.viper-7.com/ so: 5.3 - fatal error: http://codepad.viper-7.com/GGhoSn 5.4 - works: http://codepad.viper-7.com/WRdyni -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#56562) next »