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