php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6611 Array append syntax cause script exit
Submitted: 2000-09-07 14:17 UTC Modified: 2000-09-17 21:51 UTC
From: nathan at cjhunter dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.2 OS: Linux 2.0.38
Private report: No CVE-ID: None
 [2000-09-07 14:17 UTC] nathan at cjhunter dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-07 14:23 UTC] joey@php.net
Check your error_reporting settings.
This gives:
Fatal error - Cannot use [] for reading
 [2000-09-17 21:51 UTC] stas@php.net
I guess we can close this.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 23:00:01 2026 UTC