PHP 4.0 Bug #7952 Updated: problem with "return" in function

From: Date: Fri, 01 Dec 2000 09:55:27 +0000
Subject: PHP 4.0 Bug #7952 Updated: problem with "return" in function
Groups: php.dev 
Request: Send a blank email to php-dev+get-39775@lists.php.net to get a copy of this message
ID: 7952 Updated by: andi Reported By: mo@squat.net Status: Closed Bug Type: Reproduceable crash Assigned To: Comments: Please make sure your error reporting is high enough. You should get a parse error message. Previous Comments: --------------------------------------------------------------------------- [2000-11-23 14:15:49] mo@squat.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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7952

« previous php.dev (#39775) next »