Req #70446 [NEW]: There should be Parse error if ';' is missing at end
| From: | khaweronline at gmail dot com | Date: | Mon, 07 Sep 2015 10:55:26 +0000 |
| Subject: | Req #70446 [NEW]: There should be Parse error if ';' is missing at end | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-195834@lists.php.net to get a copy of this message | ||
From: khaweronline at gmail dot com
Operating system: Windows, Mac, Linux
PHP version: 5.6.13
Package: *General Issues
Bug Type: Feature/Change Request
Bug description:There should be Parse error if ';' is missing at end
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 bug report at https://bugs.php.net/bug.php?id=70446&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70446&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70446&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70446&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70446&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70446&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70446&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70446&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70446&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70446&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70446&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70446&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70446&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70446&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70446&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70446&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70446&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70446&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70446&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70446&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70446&r=mysqlcfg