/PHP-8.0/ext/phar/ |
H A D | build_precommand.php | 37 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 D | makestub.php | 26 $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 D | shortarc.php | 67 …$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 D | substr.phpt | 2 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 D | substr_int_min.phpt | 2 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 D | bug45166.phpt | 2 Bug #45166 (substr() ) 5 echo substr('cd', -3) . "\n";
|
/PHP-8.0/ext/standard/tests/streams/ |
H A D | bug62922.phpt | 5 var_dump(substr("", 0)); 6 var_dump(substr("a", 1)); 7 var_dump(substr("ab", 2));
|
H A D | bug60106.phpt | 5 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 D | argument_count_incorrect_internal.phpt | 6 substr("foo"); 12 substr() expects at least 2 arguments, 1 given
|
H A D | argument_count_incorrect_internal_strict.phpt | 7 substr("foo"); 22 substr() expects at least 2 arguments, 1 given
|
/PHP-8.0/tests/strings/ |
H A D | 001.phpt | 68 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 D | callable_003.phpt | 14 bar("substr"); 20 string(6) "substr"
|
/PHP-8.0/ext/spl/tests/ |
H A D | fileobject_003.phpt | 25 $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 D | gzopen_include_path.inc | 18 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 D | deflate_add_buffer_full.phpt | 30 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 D | gzencode_variation1-win32.phpt | 6 if( substr(PHP_OS, 0, 3) != "WIN" ) { 19 return gzinflate(substr($data,10,-8));
|
/PHP-8.0/ext/standard/tests/file/ |
H A D | fopen_include_path.inc | 18 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 D | bug71020.phpt | 10 …$myarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9…
|
H A D | bug62759.phpt | 7 var_dump(substr('deja', 1, -4)); 8 var_dump(substr('deja', -1, 0));
|
/PHP-8.0/ext/standard/tests/array/ |
H A D | bug50006.phpt | 15 $a = substr($a, 1); 16 $b = substr($b, 1);
|
H A D | bug50006_1.phpt | 15 $a = substr($a, 1); 16 $b = substr($b, 1);
|
H A D | bug50006_2.phpt | 15 $a = substr($a, 1); 16 $b = substr($b, 1);
|
/PHP-8.0/ext/session/tests/ |
H A D | skipif.inc | 4 $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 D | bug48746.phpt | 7 if(substr(PHP_OS, 0, 3) != 'WIN' ) { 25 $drive = substr(__DIR__, 0, 2); 26 $pathwithoutdrive = substr(__DIR__, 2);
|
H A D | bug48746_2.phpt | 7 if(substr(PHP_OS, 0, 3) != 'WIN' ) { 21 $drive = substr(__DIR__, 0, 2); 22 $pathwithoutdrive = substr(__DIR__, 2);
|