summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug75539.phpt
blob: 17b256f9c4ae0a87f5bb1c44a01abe259088a188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #75539 - Recursive call errors are not reported by preg_last_error()
--FILE--
<?php

var_dump(preg_match('/((?1)?z)/', ''));
var_dump(preg_last_error() === \PREG_INTERNAL_ERROR);

?>
--EXPECT--
int(0)
bool(false)