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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 01:01:30 2024 UTC