/PHP-7.4/ext/pcre/tests/ |
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_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 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 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 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 D | bug20528.phpt | 2 Bug #20528 (preg_split() drops characters (re-opens Bug #15413)) 6 var_dump(preg_split('/\b/', $data));
|
H A D | bug80866.phpt | 2 Bug #80866 preg_split ignores limit flag when pattern with \K has 0-width fullstring match 5 var_export(preg_split('~.{3}\K~', 'abcdefghijklm', 3));
|
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 | bug76127.phpt | 2 Bug #76127: preg_split does not raise an error on invalid UTF-8 5 var_dump(preg_split("/a/u", "a\xff"));
|
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 | bug70345.phpt | 8 var_dump(preg_split($regex, $subject));
|
H A D | bug70232.phpt | 10 var_dump(preg_split($pattern, $subject));
|
H A D | bug69864.phpt | 27 preg_split('/foo' . $i . 'bar/', '???foo' . $i . 'bar???');
|
H A D | 004.phpt | 15 var_dump(preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(…
|
/PHP-7.4/sapi/cli/tests/ |
H A D | bug78323.phpt | 23 $lines = preg_split('/\R/', $output); 35 $lines = preg_split('/\R/', $output); 47 $lines = preg_split('/\R/', $output); 59 $lines = preg_split('/\R/', $output);
|
H A D | 006.phpt | 129 Function [ <internal:pcre> function preg_split ] {
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | bug78323.phpt | 18 $lines = preg_split('/\R/', $output); 29 $lines = preg_split('/\R/', $output);
|
/PHP-7.4/sapi/cgi/tests/ |
H A D | bug78323.phpt | 18 $lines = preg_split('/\R/', $output); 30 $lines = preg_split('/\R/', $output);
|
/PHP-7.4/sapi/cli/ |
H A D | generate_mime_type_map.php | 20 $fields = preg_split('/\s+/', $line);
|
/PHP-7.4/scripts/dev/ |
H A D | check_parameters.php | 318 …$split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PRE… 326 $lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE); 341 list($f) = preg_split('@/\*\s*}}}\s*\*/@S', $split[$i+1][0]);
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_split.phpt | 18 $result2 = preg_split( "/$spliton/", $str, $count );
|
/PHP-7.4/ext/opcache/tests/ |
H A D | php_cli_server.inc | 10 $ini_array = preg_split('/\s+/', trim($ini));
|
/PHP-7.4/ |
H A D | run-tests.php | 2091 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS'])); 2116 settings2array(preg_split("/[\n\r]+/", $section_text['INI']), $ini_settings); 2511 $rh = preg_split("/[\n\r]+/", $match[1]); 2526 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
|
H A D | NEWS | 382 . Fixed bug #80866 (preg_split ignores limit flag when pattern with \K has 2186 . Fixed bug #76127 (preg_split does not raise an error on invalid UTF-8).
|
/PHP-7.4/ext/pcre/ |
H A D | php_pcre.c | 2504 static PHP_FUNCTION(preg_split) in PHP_FUNCTION() argument 3064 PHP_FE(preg_split, arginfo_preg_split)
|