xref: /PHP-8.3/ext/pcre/tests/errors01.phpt (revision aa79a22d)
1--TEST--
2Test preg_split() function : error conditions - Recursion limit exhausted
3--INI--
4pcre.recursion_limit=1
5--FILE--
6<?php
7
8var_dump(preg_last_error_msg() === 'No error');
9preg_split('/(\d*)/', 'ab2c3u');
10var_dump(preg_last_error_msg() === 'Recursion limit exhausted');
11
12?>
13--EXPECT--
14bool(true)
15bool(true)
16