xref: /PHP-8.1/ext/pcre/tests/gh10968.phpt (revision 66ce2057)
1--TEST--
2GH-10968: preg_replace_callback_array() segmentation fault
3--FILE--
4<?php
5var_dump(preg_replace_callback_array([], []));
6var_dump(preg_replace_callback_array([], ''));
7?>
8--EXPECT--
9array(0) {
10}
11string(0) ""
12