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