|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-09 14:06 UTC] cardinal@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
This code will crash apache : <?php $a = ''; $i = 'TEST'; if (!isset($a['BUG'][$i])) { $a['BUG'][$i] = 'SAMPLE'; } ?> But not this one : <?php $a = ''; $i = 'TEST'; $a['BUG'][$i] = 'SAMPLE'; ?> Nor this one : <?php $a = array(); $i = 'TEST'; if (!isset($a['BUG'][$i])) { $a['BUG'][$i] = 'SAMPLE'; } ?>