php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70446 There should be Parse error if ';' is missing at end
Submitted: 2015-09-07 10:55 UTC Modified: 2015-09-07 12:27 UTC
From: khaweronline at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: *General Issues
PHP Version: 5.6.13 OS: Windows, Mac, Linux
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: khaweronline at gmail dot com
New email:
PHP Version: OS:

 

 [2015-09-07 10:55 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-07 12:27 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2015-09-07 12:27 UTC] cmb@php.net
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>.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 20:01:35 2025 UTC