php-parser/test/code/parser/errorHandling/lexerErrors.test

25 lines
282 B
Plaintext
Raw Normal View History

Lexer errors
-----
<?php
$a = 42;
/*
$b = 24;
-----
Unterminated comment on line 4
-----
<?php
$a = 42;
@@{ "\1" }@@
$b = 24;
-----
Unexpected character "@@{ "\1" }@@" (ASCII 1) on unknown line
-----
<?php
$a = 42;
@@{ "\0" }@@
$b = 24;
-----
Unexpected null byte on unknown line