Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / ext / ereg / tests / spliti_basic_003.phpt
blob39bd1dcbf7bcea43b6b652433579776b7fd2d386
1 --TEST--
2 Test spliti() function : basic functionality - a few non-matches
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]', '-- 0 --'));
14 var_dump(spliti('(a){4}', '--- aaa ---'));
15 var_dump(spliti('^a', '--- ba ---'));
16 var_dump(spliti('b$', '--- ba ---'));
17 var_dump(spliti('[:alpha:]', '--- x ---'));
20 echo "Done";
22 --EXPECTF--
23 Deprecated: Function spliti() is deprecated in %s on line %d
24 array(1) {
25   [0]=>
26   string(7) "-- 0 --"
29 Deprecated: Function spliti() is deprecated in %s on line %d
30 array(1) {
31   [0]=>
32   string(11) "--- aaa ---"
35 Deprecated: Function spliti() is deprecated in %s on line %d
36 array(1) {
37   [0]=>
38   string(10) "--- ba ---"
41 Deprecated: Function spliti() is deprecated in %s on line %d
42 array(1) {
43   [0]=>
44   string(10) "--- ba ---"
47 Deprecated: Function spliti() is deprecated in %s on line %d
48 array(1) {
49   [0]=>
50   string(9) "--- x ---"
52 Done