Req #70446 [Opn->Nab]: There should be Parse error if ';' is missing at end

From: Date: Mon, 07 Sep 2015 12:27:12 +0000
Subject: Req #70446 [Opn->Nab]: There should be Parse error if ';' is missing at end
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195842@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70446&edit=1 ID: 70446 Updated by: cmb@php.net Reported by: khaweronline at gmail dot com Summary: There should be Parse error if ';' is missing at end -Status: Open +Status: Not a bug Type: Feature/Change Request Package: *General Issues Operating System: Windows, Mac, Linux PHP Version: 5.6.13 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php See <http://php.net/manual/en/language.basic-syntax.instruction-separation.php>. Previous Comments: ------------------------------------------------------------------------ [2015-09-07 10:55:26] khaweronline at gmail dot com Description: ------------ There is syntax error in code, ';' is missing after var_dump($a, but still the code is working. There should be parse error (syntax error) Test script: --------------- <?php /* There is syntax error in code, ';' is missing after var_dump($a, but still the code is working. There should be parse error (syntax error) */ $a = 5; var_dump($a) ?> Expected result: ---------------- SHould give parse error Actual result: -------------- It didn't display parse error ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70446&edit=1

« previous php.bugs (#195842) next »