|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-13 14:12 UTC] felipe@php.net
[2008-03-13 14:12 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 22:00:01 2025 UTC |
Description: ------------ isset throws a fatal error when passing a string offset as an array of depth 3 or more when expected behavior would be it returning false. Reproduce code: --------------- $string=''; if(isset($string['test']['test'])) echo "true\n"; else echo "false\n"; if(isset($string['test']['test']['test'])) echo "true\n"; else echo "false\n"; Expected result: ---------------- false false Actual result: -------------- false PHP Fatal error: Cannot use string offset as an array in /home/anubis/test.php on line 8