php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7952 problem with "return" in function
Submitted: 2000-11-23 14:15 UTC Modified: 2000-12-01 04:55 UTC
From: mo at squat dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: suse 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mo at squat dot net
New email:
PHP Version: OS:

 

 [2000-11-23 14:15 UTC] mo at squat dot net
I had the problem before, and it's a bit anoying:

if you forget the ";" after the "return" in a function, you will get a browser error message "document contained no data". In case you have done a lot of changes, it is difficult to find the mistake.
a message like "parse error at line xxx" would be nice.

B.t.w.: I love PHP, Keep up the good work you're doing,

	Moritz

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-01 04:55 UTC] andi@php.net
Please make sure your error reporting is high enough. You should get a parse error message.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Jun 27 05:00:01 2026 UTC