PHP 4.0 Bug #6611 Updated: Array append syntax cause script exit

From: Date: Mon, 18 Sep 2000 01:51:22 +0000
Subject: PHP 4.0 Bug #6611 Updated: Array append syntax cause script exit
Groups: php.dev 
Request: Send a blank email to php-dev+get-33404@lists.php.net to get a copy of this message
ID: 6611 Updated by: stas Reported By: nathan@cjhunter.com Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: I guess we can close this. Previous Comments: --------------------------------------------------------------------------- [2000-09-07 14:23:43] joey@php.net Check your error_reporting settings. This gives: Fatal error - Cannot use [] for reading --------------------------------------------------------------------------- [2000-09-07 14:17:16] nathan@cjhunter.com In a php script if you simply have an '<?echo $var[]?>' in your scipt it causes it to exit and output nothing. I stumbled upon this bug when the script I was working on all of the sudden started returning nothing. I imagine this could be fixed by testing for the condidtion and returning a null value or a parse error. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6611

« previous php.dev (#33404) next »