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

From: Date: Fri, 09 Nov 2001 19:06:58 +0000
Subject: Bug #13999 Updated: Invalid array initialization will crash Apache !?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-69903@lists.php.net to get a copy of this message
ID: 13999 Updated by: cardinal Reported By: g.noel@symphonieonline.com Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: Apache - Linux / Windows PHP Version: 4.0.6 New Comment: Reproduced in 4.0.6, but looks like it's fixed in 4.1.0 RC1 Previous Comments: ------------------------------------------------------------------------ [2001-11-09 13:22:36] g.noel@symphonieonline.com 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 this bug report at http://bugs.php.net/?id=13999&edit=1

« previous php.dev (#69903) next »