php-src/tests/lang/string/unicode_escape_sign2.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
178 B
PHP

--TEST--
Invalid Unicode escape sequence: Negative sign
--FILE--
<?php
var_dump("\u{-1F602}");
--EXPECTF--
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d