Bug #13999: Invalid array initialization will crash Apache !?

From: Date: Fri, 09 Nov 2001 18:22:36 +0000
Subject: Bug #13999: Invalid array initialization will crash Apache !?
Groups: php.dev 
Request: Send a blank email to php-dev+get-69902@lists.php.net to get a copy of this message
From: g.noel@symphonieonline.com Operating system: Apache - Linux / Windows PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: Invalid array initialization will crash Apache !? 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'; } ?> -- Edit bug report at: http://bugs.php.net/?id=13999&edit=1

« previous php.dev (#69902) next »