xref: /PHP-8.1/ext/mbstring/tests/bug73646.phpt (revision 4083600b)
1--TEST--
2Bug #73646 (mb_ereg_search_init null pointer dereference)
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists('mb_ereg')) die('skip mbregex support not available');
8?>
9--FILE--
10<?php
11var_dump(mb_ereg_search_init(NULL));
12?>
13--EXPECTF--
14Deprecated: mb_ereg_search_init(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d
15bool(true)
16