xref: /PHP-5.4/ext/pcre/tests/pcre_extra.phpt (revision a7bc2866)
1--TEST--
2X (PCRE_EXTRA) modififer
3--FILE--
4<?php
5
6var_dump(preg_match('/\y/', '\y'));
7var_dump(preg_match('/\y/X', '\y'));
8
9?>
10--EXPECTF--
11int(1)
12
13Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 1 in %spcre_extra.php on line 4
14bool(false)
15