diff options
Diffstat (limited to 'ext/pcre/tests/pcre_extra.phpt')
-rw-r--r-- | ext/pcre/tests/pcre_extra.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/pcre/tests/pcre_extra.phpt b/ext/pcre/tests/pcre_extra.phpt new file mode 100644 index 0000000..2bee408 --- /dev/null +++ b/ext/pcre/tests/pcre_extra.phpt @@ -0,0 +1,14 @@ +--TEST-- +X (PCRE_EXTRA) modififer +--FILE-- +<?php + +var_dump(preg_match('/\y/', '\y')); +var_dump(preg_match('/\y/X', '\y')); + +?> +--EXPECTF-- +int(1) + +Warning: preg_match(): Compilation failed: unrecognized character follows \ at offset 1 in %spcre_extra.php on line 4 +bool(false) |