dis-bench / src /php /php-src /tests /lang /string /unicode_escape_legacy.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
269 Bytes
--TEST--
Tolerated Unicode escape sequences: Legacy compatibility
--FILE--
<?php
// These are ignored to avoid breaking JSON string literals
var_dump("\u");
var_dump("\u202e");
var_dump("\ufoobar");
?>
--EXPECT--
string(2) "\u"
string(6) "\u202e"
string(8) "\ufoobar"