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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nathan at cjhunter dot com
New email:
PHP Version: OS:

 

 [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: Sun Oct 11 02:00:01 2026 UTC