php-src/ext/pcre/tests/bug52732.phpt
2010-11-06 18:32:10 +00:00

13 lines
246 B
PHP

--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)