Disallow new without a class name

Fixes #137.
This commit is contained in:
nikic
2014-09-28 12:41:35 +02:00
parent 2b96ab8edc
commit 3e1665bbbd
4 changed files with 282 additions and 280 deletions

View File

@@ -0,0 +1,6 @@
New without a class
-----
<?php
new;
-----
Syntax error, unexpected ';' on line 2