php-src/tests/lang/invalid_octal.phpt
Nikita Popov a8bf1c5d8f Throw ParseException from lexer
Primarily to avoid getting fatal errors from token_get_all().

Implemented using a magic E_ERROR token, which the lexer emits to
force a parser failure.
2015-04-02 16:31:17 +02:00

9 lines
113 B
PHP

--TEST--
Invalid octal
--FILE--
<?php
$x = 08;
--EXPECTF--
Parse error: Invalid numeric literal in %s on line 3