1--TEST-- 2Bug #21820 ("$arr['foo']" generates bogus E_NOTICE, should be E_PARSE) 3--FILE-- 4<?php 5 6error_reporting(E_ALL); 7 8$arr = array('foo' => 'bar'); 9echo "$arr['foo']"; 10 11?> 12--EXPECTF-- 13Parse error: %s error, %s(T_STRING)%s(T_VARIABLE)%s(T_NUM_STRING)%sin %sbug21820.php on line %d 14