mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
f4927c28bc
patch by: slugonamission at gmail dot com
13 lines
246 B
PHP
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)
|