php-8.0.30-src/ext/pcre/tests/bug75539.phpt

19 lines
326 B
PHP

--TEST--
Bug #75539 - Recursive call errors are not reported by preg_last_error()
--SKIPIF--
<?php
if (10 == PCRE_VERSION_MAJOR && 37 == PCRE_VERSION_MINOR) {
die("skip ");
}
?>
--FILE--
<?php
var_dump(preg_match('/((?1)?z)/', ''));
var_dump(preg_last_error() === \PREG_INTERNAL_ERROR);
?>
--EXPECT--
int(0)
bool(false)