Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / ext / ereg / tests / spliti_basic_004.phpt
blobed07193194a7bc715c16c7c2c6bc4e628b70b715
1 --TEST--
2 Test spliti() function : basic functionality - confirm case insensitivity
3 --FILE--
4 <?php
5 /* Prototype  : proto array spliti(string pattern, string string [, int limit])
6  * Description: spliti string into array by regular expression 
7  * Source code: ext/standard/reg.c
8  * Alias to functions: 
9  */
11 $replacement = 'r';
13 var_dump(spliti('[a-z]', '--- A ---'));
14 var_dump(spliti('[A-Z]', '--- a ---'));
15 var_dump(spliti('[[:lower:]]', '--- A ---'));
16 var_dump(spliti('[[:upper:]]', '--- a ---'));
18 echo "Done";
20 --EXPECTF--
21 Deprecated: Function spliti() is deprecated in %s on line %d
22 array(2) {
23   [0]=>
24   string(4) "--- "
25   [1]=>
26   string(4) " ---"
29 Deprecated: Function spliti() is deprecated in %s on line %d
30 array(2) {
31   [0]=>
32   string(4) "--- "
33   [1]=>
34   string(4) " ---"
37 Deprecated: Function spliti() is deprecated in %s on line %d
38 array(2) {
39   [0]=>
40   string(4) "--- "
41   [1]=>
42   string(4) " ---"
45 Deprecated: Function spliti() is deprecated in %s on line %d
46 array(2) {
47   [0]=>
48   string(4) "--- "
49   [1]=>
50   string(4) " ---"
52 Done