/PHP-8.4/ext/pcre/tests/ |
H A D | split.phpt | 2 preg_split() 6 var_dump(preg_split('/*/', 'x')); 8 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz')); 9 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', -1)); 10 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 0)); 11 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 1)); 12 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 2)); 14 var_dump(preg_split('/\d*/', 'ab2c3u')); 15 var_dump(preg_split('/\d*/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY)); 19 Warning: preg_split(): Compilation failed: quantifier does not follow a repeatable item at offset 0…
|
H A D | preg_split_error1.phpt | 2 Test preg_split() function : error conditions - bad regular expressions 9 * Testing how preg_split reacts to being passed the wrong type of regex argument 26 var_dump(preg_split($regex_value, $subject)); 33 var_dump(preg_split($regex_value, $subject)); 40 Warning: preg_split(): Delimiter must not be alphanumeric, backslash, or NUL byte in %spreg_split_e… 43 Warning: preg_split(): No ending delimiter '/' found in %spreg_split_error1.php on line %d 46 Warning: preg_split(): Unknown modifier '/' in %spreg_split_error1.php on line %d 49 Warning: preg_split(): Unknown modifier 'F' in %spreg_split_error1.php on line %d 51 preg_split(): Argument #1 ($pattern) must be of type string, array given 60 preg_split(): Argument #1 ($pattern) must be of type string, stdClass given
|
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_… 18 var_dump(preg_split('/(\d*)/', 'ab2c3u'));
|
H A D | preg_split_basic.phpt | 2 Test preg_split() function : basic functionality 9 var_dump(preg_split('/[:,;\(\)]/', $string, -1, PREG_SPLIT_NO_EMPTY)); //parts of $string separated… 10 var_dump(preg_split('/:\s*(\w*,*\s*)+;/', $string)); //all text between : and ; is removed 11 var_dump(preg_split('/(\(|\))/', $string, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY)); //all… 12 var_dump(preg_split('/NAME/i', $string)); //tries to find NAME regardless of case in $string (can't… 13 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 | errors02.phpt | 2 Test preg_split() function : error conditions - Malformed UTF-8 6 var_dump(preg_split('/a/u', "a\xff"));
|
H A D | errors01.phpt | 2 Test preg_split() function : error conditions - Recursion limit exhausted 9 preg_split('/(\d*)/', 'ab2c3u');
|
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-8.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 | php_cli_server_pdeathsig.phpt | 17 return preg_split('(\s)', trim($lines ?? ''), flags: PREG_SPLIT_NO_EMPTY);
|
/PHP-8.4/sapi/fpm/tests/ |
H A D | bug78323.phpt | 18 $lines = preg_split('/\R/', $output); 29 $lines = preg_split('/\R/', $output);
|
/PHP-8.4/sapi/cgi/tests/ |
H A D | bug78323.phpt | 18 $lines = preg_split('/\R/', $output); 30 $lines = preg_split('/\R/', $output);
|
/PHP-8.4/scripts/dev/ |
H A D | check_parameters.php | 309 …$split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PRE… 316 $lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE); 330 list($f) = preg_split('@/\*\s*}}}\s*\*/@S', $split[$i+1][0]);
|
/PHP-8.4/ext/pcre/ |
H A D | php_pcre_arginfo.h | 84 ZEND_FUNCTION(preg_split); 97 ZEND_FE(preg_split, arginfo_preg_split)
|
H A D | php_pcre.stub.php | 136 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false… function
|
/PHP-8.4/ext/mbstring/tests/ |
H A D | mb_split.phpt | 17 $result2 = preg_split( "/$spliton/", $str, $count );
|
/PHP-8.4/ext/opcache/tests/ |
H A D | php_cli_server.inc | 10 $ini_array = preg_split('/\s+/', trim($ini));
|