xref: /PHP-8.0/ext/pcre/tests/bug52732.phpt (revision d679f022)
1--TEST--
2Bug #52732 (Docs say preg_match() returns FALSE on error, but it returns int(0))
3--INI--
4pcre.backtrack_limit=1
5--FILE--
6<?php
7$ret = preg_match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar');
8
9var_dump($ret);
10
11?>
12--EXPECT--
13bool(false)
14