xref: /PHP-8.3/ext/pcre/tests/bug75539.phpt (revision f7ab7951)
1--TEST--
2Bug #75539 - Recursive call errors are not reported by preg_last_error()
3--SKIPIF--
4<?php
5if (10 == PCRE_VERSION_MAJOR && 37 == PCRE_VERSION_MINOR) {
6    die("skip ");
7}
8?>
9--FILE--
10<?php
11
12var_dump(preg_match('/((?1)?z)/', ''));
13var_dump(preg_last_error() === \PREG_INTERNAL_ERROR);
14
15?>
16--EXPECT--
17int(0)
18bool(false)
19