xref: /PHP-5.6/ext/mbstring/tests/mb_eregi.phpt (revision 4f0c8ef1)
1--TEST--
2mb_eregi() and invalid arguments
3--SKIPIF--
4<?php
5if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
6if (!function_exists("mb_eregi")) print "skip mb_eregi() not available";
7?>
8--FILE--
9<?php
10
11mb_regex_encoding('utf-8');
12
13var_dump(mb_eregi('z', 'XYZ'));
14var_dump(mb_eregi('xyzp', 'XYZ'));
15var_dump(mb_eregi('ö', 'Öäü'));
16?>
17--EXPECT--
18int(1)
19bool(false)
20int(1)
21