Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 782) sorted by relevance

12345678910>>...32

/PHP-8.0/ext/phar/
H A Dbuild_precommand.php37 if (substr($f[$c], -2) == "\r\n") {
38 $f[$c] = substr($f[$c], 0, -2);
40 if (substr($f[$c], -1) == "\n") {
41 $f[$c] = substr($f[$c], 0, -1);
43 if (substr($f[$c], -2) == '?>') {
44 $f[$c] = substr($f[$c], 0,-2);
H A Dmakestub.php26 $webs = substr($s, 0, strpos($s, "000"));
27 $s = substr($s, strlen($webs) + strlen("000"));
28 $s1 = substr($s, 0, strpos($s, 'index.php'));
29 $s2 = substr($s, strlen($s1) + strlen('index.php'));
30 $s2 = substr($s2, 0, strpos($s2, 'XXXX'));
31 $s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php'));
59 $s1split[$i] = substr($chunk, 1);
69 $s3split[$i] = substr($chunk, 1);
H A Dshortarc.php67 …$pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basenam…
157 $sessionpath = substr ($sessionpath, strpos ($sessionpath, ";")+1);
215 $info = unpack('V', substr($m, 0, 4));
217 $l = unpack('V', substr($m, 10, 4));
218 $m = substr($m, 14 + $l[1]);
219 $s = unpack('V', substr($m, 0, 4));
226 $len = unpack('V', substr($m, $start, 4));
229 $savepath = substr($m, $start, $len[1]);
234 … $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
/PHP-8.0/ext/standard/tests/strings/
H A Dsubstr.phpt2 Testing substr() function
15 var_dump ( substr($str, 1) );
16 var_dump ( substr($str, 0) );
17 var_dump ( substr($str, -2) );
23 var_dump ( substr($str, 1, 3) );
24 var_dump ( substr($str, 1, 0) );
25 var_dump ( substr($str, 1, -3) );
26 var_dump ( substr($str, 0, 3) );
27 var_dump ( substr($str, 0, 0) );
28 var_dump ( substr($str, 0, -3) );
[all …]
H A Dsubstr_int_min.phpt2 substr() with PHP_INT_MIN offset or length
5 var_dump(substr('x', PHP_INT_MIN));
6 var_dump(substr('x', 0, PHP_INT_MIN));
H A Dbug45166.phpt2 Bug #45166 (substr() )
5 echo substr('cd', -3) . "\n";
/PHP-8.0/ext/standard/tests/streams/
H A Dbug62922.phpt5 var_dump(substr("", 0));
6 var_dump(substr("a", 1));
7 var_dump(substr("ab", 2));
H A Dbug60106.phpt5 if( substr(PHP_OS, 0, 3) == "WIN" )
16 $socket_file = substr($socket_file, 0, intval($matches[1]) - 1);
/PHP-8.0/Zend/tests/function_arguments/
H A Dargument_count_incorrect_internal.phpt6 substr("foo");
12 substr() expects at least 2 arguments, 1 given
H A Dargument_count_incorrect_internal_strict.phpt7 substr("foo");
22 substr() expects at least 2 arguments, 1 given
/PHP-8.0/tests/strings/
H A D001.phpt68 echo "Testing substr: ";
71 $tests++; if (substr($string, 2, 10) == "ring12345") { $ok++; }
72 $tests++; if (substr($string, 4, 7) == "ng12345") { $ok++; }
73 $tests++; if (substr($string, 4) == "ng12345") { $ok++; }
74 $tests++; if (substr($string, 10, 2) == "5") { $ok++; }
75 $tests++; if (substr($string, 6, 0) == "") { $ok++; }
76 $tests++; if (substr($string, -2, 2) == "45") { $ok++; }
77 $tests++; if (substr($string, 1, -1) == "tring1234") { $ok++; }
78 $tests++; if (substr($string, -1, -2) == "") { $ok++; }
79 $tests++; if (substr($string, -3, -2) == "3") { $ok++; }
[all …]
/PHP-8.0/Zend/tests/type_declarations/
H A Dcallable_003.phpt14 bar("substr");
20 string(6) "substr"
/PHP-8.0/ext/spl/tests/
H A Dfileobject_003.phpt25 $l = substr($f->getPathName(), -1);
28 $l = substr($f->getFileName(), -1);
31 $l = substr($f->getPath(), -1);
44 test(__DIR__ . '/' . 'fileobject_001a.txt', 't', substr(__DIR__,-1));
45 test(__DIR__ . '/', substr(__DIR__,-1), 'l');
46 test(__DIR__, substr(__DIR__,-1), 'l');
/PHP-8.0/ext/zlib/tests/
H A Dgzopen_include_path.inc18 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
32 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
48 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
64 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
H A Ddeflate_add_buffer_full.phpt30 echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
38 echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
46 echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
H A Dgzencode_variation1-win32.phpt6 if( substr(PHP_OS, 0, 3) != "WIN" ) {
19 return gzinflate(substr($data,10,-8));
/PHP-8.0/ext/standard/tests/file/
H A Dfopen_include_path.inc18 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
32 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
48 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
64 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
/PHP-8.0/ext/intl/tests/
H A Dbug71020.phpt10 …$myarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9…
H A Dbug62759.phpt7 var_dump(substr('deja', 1, -4));
8 var_dump(substr('deja', -1, 0));
/PHP-8.0/ext/standard/tests/array/
H A Dbug50006.phpt15 $a = substr($a, 1);
16 $b = substr($b, 1);
H A Dbug50006_1.phpt15 $a = substr($a, 1);
16 $b = substr($b, 1);
H A Dbug50006_2.phpt15 $a = substr($a, 1);
16 $b = substr($b, 1);
/PHP-8.0/ext/session/tests/
H A Dskipif.inc4 $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
18 $save_path = substr($save_path, ++$p);
/PHP-8.0/ext/standard/tests/file/windows_links/
H A Dbug48746.phpt7 if(substr(PHP_OS, 0, 3) != 'WIN' ) {
25 $drive = substr(__DIR__, 0, 2);
26 $pathwithoutdrive = substr(__DIR__, 2);
H A Dbug48746_2.phpt7 if(substr(PHP_OS, 0, 3) != 'WIN' ) {
21 $drive = substr(__DIR__, 0, 2);
22 $pathwithoutdrive = substr(__DIR__, 2);

Completed in 22 milliseconds

12345678910>>...32