/PHP-5.3/ext/pcre/tests/ |
H A D | preg_split_error.phpt | 2 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 D | split.phpt | 2 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 D | preg_split_error2.phpt | 2 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 D | preg_split_error1.phpt | 2 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 D | bug42945.phpt | 2 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 D | split2.phpt | 2 preg_split() 2nd test 6 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE)); 7 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_OFFSET_CAPTURE)); 8 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE)); 9 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE));; 10 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE)); 11 var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_… 17 var_dump(preg_split('/(\d*)/', 'ab2c3u'));
|
H A D | preg_split_basic.phpt | 2 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 seperated… 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 D | bug20528.phpt | 2 Bug #20528 (preg_split() drops characters (re-opens Bug #15413)) 6 var_dump(preg_split('/\b/', $data));
|
H A D | bug42737.phpt | 2 Bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines) 8 $array = preg_split('//u', $string, - 1, PREG_SPLIT_NO_EMPTY);
|
H A D | bug27103.phpt | 2 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 D | 004.phpt | 17 var_dump(preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(…
|
/PHP-5.3/scripts/dev/ |
H A D | check_parameters.php | 312 …$split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PRE… 320 $lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE); 335 list($f) = preg_split('@/\*\s*}}}\s*\*/@S', $split[$i+1][0]);
|
/PHP-5.3/ext/spl/internal/ |
H A D | regexiterator.inc | 36 preg_split() */ 50 * preg_match_all(), preg_split() 90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1;
|
H A D | recursiveregexiterator.inc | 32 * preg_match_all(), preg_split()
|
/PHP-5.3/ |
H A D | server-tests.php | 315 $rh = preg_split("/[\n\r]+/",$match[1]); 541 $out = preg_split("/[\n\r]+/",$out); 1060 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings); 1115 settings2array(preg_split( "/[\n\r]+/", $sect), $env); 1128 settings2array(preg_split( "/[\n\r]+/", $sect), $rq); 1396 $rh = preg_split("/[\n\r]+/",$match[1]); 1449 $lines = preg_split("/[\n\r]+/",$section_text['EXPECTHEADERS']);
|
H A D | run-tests.php | 1450 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings); 1456 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS'])); 1825 $rh = preg_split("/[\n\r]+/", $match[1]); 1841 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
|
H A D | NEWS | 3828 - Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines). 3971 - Fixed bug #42945 (preg_split() swallows part of the string). (Nuno)
|
/PHP-5.3/ext/mcrypt/tests/ |
H A D | blowfish.phpt | 21 list($key,$plain,$crypt) = preg_split("/[[:space:]]+/",$data);
|
/PHP-5.3/sapi/cli/tests/ |
H A D | 006.phpt | 107 Function [ <internal:pcre> function preg_split ] {
|
/PHP-5.3/ext/pcre/ |
H A D | php_pcre.c | 1428 static PHP_FUNCTION(preg_split) in PHP_FUNCTION() argument 1902 PHP_FE(preg_split, arginfo_preg_split)
|