diff options
Diffstat (limited to 'ext/pcre/tests/bug52732.phpt')
| -rw-r--r-- | ext/pcre/tests/bug52732.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug52732.phpt b/ext/pcre/tests/bug52732.phpt new file mode 100644 index 0000000..8cfa204 --- /dev/null +++ b/ext/pcre/tests/bug52732.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #52732 (Docs say preg_match() returns FALSE on error, but it returns int(0)) +--INI-- +pcre.backtrack_limit=1 +--FILE-- +<?php +$ret = preg_match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar'); + +var_dump($ret); + +?> +--EXPECT-- +bool(false)
\ No newline at end of file |
