Home
last modified time | relevance | path

Searched refs:preg_split (Results 1 – 24 of 24) sorted by relevance

/PHP-7.1/ext/pcre/tests/
H A Dpreg_split_error.phpt2 Test preg_split() function : error conditions - incorrect number of parameters
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
9 echo "*** Testing preg_split() : error conditions ***\n";
11 echo "\n-- Testing preg_split() function with Zero arguments --\n";
12 var_dump(preg_split());
13 //Test preg_split with one more than the expected number of arguments
20 var_dump(preg_split($pattern, $subject, $limit, $flags, $extra_arg));
21 // Testing preg_split withone less than the expected number of arguments
24 var_dump(preg_split($pattern));
28 *** Testing preg_split() : error conditions ***
[all …]
H A Dsplit.phpt2 preg_split()
6 var_dump(preg_split());
7 var_dump(preg_split('/*/', 'x'));
9 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz'));
10 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', -1));
11 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 0));
12 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 1));
13 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 2));
15 var_dump(preg_split('/\d*/', 'ab2c3u'));
16 var_dump(preg_split('/\d*/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY));
[all …]
H A Dpreg_split_error2.phpt2 Test preg_split() function : error conditions - wrong arg types
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
11 * Testing how preg_split reacts to being passed the wrong type of input argument
13 echo "*** Testing preg_split() : error conditions ***\n";
18 var_dump(preg_split($regex, $value));
21 var_dump(preg_split($regex, $value));
25 *** Testing preg_split() : error conditions ***
29 Warning: preg_split() expects parameter 2 to be string, array given in %spreg_split_error2.php on l…
32 Warning: preg_split() expects parameter 2 to be string, object given in %spreg_split_error2.php on …
H A Dpreg_split_error1.phpt2 Test preg_split() function : error conditions - bad regular expressions
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
11 * Testing how preg_split reacts to being passed the wrong type of regex argument
13 echo "*** Testing preg_split() : error conditions ***\n";
23 var_dump(preg_split($regex_value, $subject));
26 var_dump(preg_split($regex_value, $subject));
29 *** Testing preg_split() : error conditions ***
38 Warning: preg_split(): No ending delimiter '/' found in %spreg_split_error1.php on line %d
43 Warning: preg_split(): Unknown modifier '/' in %spreg_split_error1.php on line %d
48 Warning: preg_split(): Unknown modifier 'F' in %spreg_split_error1.php on line %d
[all …]
H A Dbug42945.phpt2 Bug #42945 (preg_split() swallows part of the string)
9 var_dump(preg_split('/\b/', "a'"));
10 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_OFFSET_CAPTURE));
11 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_NO_EMPTY));
12 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_OFFSET_CAPTURE));
H A Dsplit2.phpt2 preg_split() 2nd test
8 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE));
9 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_OFFSET_CAPTURE));
10 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
11 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE));;
12 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE));
13 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_…
19 var_dump(preg_split('/(\d*)/', 'ab2c3u'));
H A Dpreg_split_basic.phpt2 Test preg_split() function : basic functionality
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
10 var_dump(preg_split('/[:,;\(\)]/', $string, -1, PREG_SPLIT_NO_EMPTY)); //parts of $string separated…
11 var_dump(preg_split('/:\s*(\w*,*\s*)+;/', $string)); //all text between : and ; is removed
12 var_dump(preg_split('/(\(|\))/', $string, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY)); //all…
13 var_dump(preg_split('/NAME/i', $string)); //tries to find NAME regardless of case in $string (can't…
14 var_dump(preg_split('/\w/', $string, -1, PREG_SPLIT_NO_EMPTY)); //every character (including whites…
H A Dbug20528.phpt2 Bug #20528 (preg_split() drops characters (re-opens Bug #15413))
6 var_dump(preg_split('/\b/', $data));
H A Dbug42737.phpt2 Bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines)
8 $array = preg_split('//u', $string, - 1, PREG_SPLIT_NO_EMPTY);
H A Dbug27103.phpt2 Bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets)
18 iter(preg_split('//u', $teststr, -1, PREG_SPLIT_NO_EMPTY));
H A Dbug70345.phpt8 $v = preg_split($regex, $subject);
H A Dbug70232.phpt16 var_dump(preg_split($pattern, $subject));
H A Dbug69864.phpt27 preg_split('/foo' . $i . 'bar/', '???foo' . $i . 'bar???');
H A D004.phpt15 var_dump(preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(…
/PHP-7.1/sapi/cli/
H A Dgenerate_mime_type_map.php20 $fields = preg_split('/\s+/', $line);
/PHP-7.1/scripts/dev/
H A Dcheck_parameters.php320 …$split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PRE…
328 $lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE);
343 list($f) = preg_split('@/\*\s*}}}\s*\*/@S', $split[$i+1][0]);
/PHP-7.1/ext/spl/internal/
H A Dregexiterator.inc36 preg_split() */
50 * preg_match_all(), preg_split()
90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1;
H A Drecursiveregexiterator.inc32 * preg_match_all(), preg_split()
/PHP-7.1/ext/mbstring/tests/
H A Dmb_split.phpt19 $result2 = preg_split( "/$spliton/", $str, $count );
/PHP-7.1/
H A Dserver-tests.php133 $dirs = preg_split('/[\\/]/',$path);
307 $rh = preg_split("/[\n\r]+/",$match[1]);
531 $out = preg_split("/[\n\r]+/",$out);
1047 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1102 settings2array(preg_split( "/[\n\r]+/", $sect), $env);
1115 settings2array(preg_split( "/[\n\r]+/", $sect), $rq);
1383 $rh = preg_split("/[\n\r]+/",$match[1]);
1489 $lines = preg_split("/[\n\r]+/",$section_text['EXPECTHEADERS']);
H A Drun-tests.php1515 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1539 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1934 $rh = preg_split("/[\n\r]+/", $match[1]);
1950 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
/PHP-7.1/sapi/cli/tests/
H A D006.phpt120 Function [ <internal:pcre> function preg_split ] {
/PHP-7.1/ext/mcrypt/tests/
H A Dblowfish.phpt23 list($key,$plain,$crypt) = preg_split("/[[:space:]]+/",$data);
/PHP-7.1/ext/pcre/
H A Dphp_pcre.c1759 static PHP_FUNCTION(preg_split) in PHP_FUNCTION() argument
2233 PHP_FE(preg_split, arginfo_preg_split)

Completed in 51 milliseconds