From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to