xref: /PHP-8.0/ext/mbstring/tests/mb_ereg2.phpt (revision 852485d8)
1--TEST--
2mb_ereg() returning matches
3--SKIPIF--
4<?php
5if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
6if (!function_exists("mb_ereg")) print "skip mb_ereg() not available";
7?>
8--FILE--
9<?php
10
11$a = -1; $b = -1; $c = -1;
12mb_ereg($a, $b, $c);
13var_dump($a, $b, $c);
14
15mb_eregi($a, $b, $c);
16var_dump($a, $b, $c);
17
18echo "Done\n";
19?>
20--EXPECT--
21int(-1)
22int(-1)
23array(1) {
24  [0]=>
25  string(2) "-1"
26}
27int(-1)
28int(-1)
29array(1) {
30  [0]=>
31  string(2) "-1"
32}
33Done
34