mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00

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.
8 lines
175 B
PHP
8 lines
175 B
PHP
--TEST--
|
|
Invalid Unicode escape sequence: Whitespace
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump("\u{1F602 }");
|
|
--EXPECTF--
|
|
Parse error: Invalid UTF-8 codepoint escape sequence in %s on line %d
|