/PHP-7.2/ext/standard/tests/strings/ |
H A D | substr.phpt | 2 Testing substr() function 17 var_dump( substr() ); 20 var_dump( substr(NULL) ); 23 var_dump( substr("abcde") ); 26 var_dump( substr(12345) ); 38 var_dump ( substr($str, 1) ); 39 var_dump ( substr($str, 0) ); 40 var_dump ( substr($str, -2) ); 46 var_dump ( substr($str, 1, 3) ); 47 var_dump ( substr($str, 1, 0) ); [all …]
|
H A D | bug45166.phpt | 2 Bug #45166 (substr() ) 5 echo substr('cd', -3) . "\n";
|
/PHP-7.2/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')); 61 $s1split[$i] = substr($chunk, 1); 71 $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-7.2/ext/ |
H A D | ext_skel_win32.php | 30 if (strtolower(substr($arg, 0, 9)) == "--extname") { 31 $extname = substr($arg, 10); 33 if (strtolower(substr($arg, 0, 6)) == "--skel") { 34 $skel = substr($arg, 7);
|
/PHP-7.2/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));
|
/PHP-7.2/build/ |
H A D | scan_makefile_in.awk | 8 sources=substr($0, RSTART, RLENGTH-1) 16 sources=substr($0, RSTART, RLENGTH) 21 sources=sources substr($0, 0, length - 1)
|
/PHP-7.2/scripts/dev/generate-phpt/src/setup/ |
H A D | gtCommandLineOptions.php | 30 return (substr($arg, 0, 1) == '-') && (substr($arg, 1, 1) != '-'); 38 return substr($array[$index], 0, 1) != '-'; 51 $option = substr($argv[$i], 1);
|
/PHP-7.2/ext/interbase/tests/ |
H A D | interbase.inc | 101 $n = substr(rand() . rand(), 0, rand() % $len + 1); 103 $n .= "." . substr(rand(), 0, rand() % ($len - strlen($n)) + 1); 106 $n = substr(rand() . rand(), 0, rand() % $len + 1); 108 $n = substr(rand() . rand(), 0, 1); 109 $n .= "." . substr(rand(), 0, $prec); 111 $n = substr(rand() . rand(), 0, rand() % ($len - $prec) + 1); 112 $n .= "." . substr(rand(), 0, $prec);
|
/PHP-7.2/Zend/tests/ |
H A D | bug47320.phpt | 8 if (!@substr('no 2nd parameter')) { 24 $php_errormsg in global: substr() expects at least 2 parameters, 1 given 26 $GLOBALS[php_errormsg] in function: substr() expects at least 2 parameters, 1 given
|
/PHP-7.2/tests/strings/ |
H A D | 001.phpt | 70 echo "Testing substr: "; 73 $tests++; if (substr($string, 2, 10) == "ring12345") { $ok++; } 74 $tests++; if (substr($string, 4, 7) == "ng12345") { $ok++; } 75 $tests++; if (substr($string, 4) == "ng12345") { $ok++; } 76 $tests++; if (substr($string, 10, 2) == "5") { $ok++; } 77 $tests++; if (substr($string, 6, 0) == "") { $ok++; } 78 $tests++; if (substr($string, -2, 2) == "45") { $ok++; } 79 $tests++; if (substr($string, 1, -1) == "tring1234") { $ok++; } 80 $tests++; if (substr($string, -1, -2) == "") { $ok++; } 81 $tests++; if (substr($string, -3, -2) == "3") { $ok++; } [all …]
|
/PHP-7.2/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(dirname(__FILE__) . '/' . 'fileobject_001a.txt', 't', substr(dirname(__FILE__),-1)); 45 test(dirname(__FILE__) . '/', substr(dirname(__FILE__),-1), 'l'); 46 test(dirname(__FILE__), substr(dirname(__FILE__),-1), 'l');
|
/PHP-7.2/Zend/tests/function_arguments/ |
H A D | argument_count_incorrect_internal.phpt | 5 substr("foo"); 8 Warning: substr() expects at least 2 parameters, 1 given in %s
|
H A D | argument_count_incorrect_internal_strict.phpt | 7 substr("foo"); 16 substr() expects at least 2 parameters, 1 given
|
/PHP-7.2/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";
|
/PHP-7.2/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-7.2/Zend/tests/type_declarations/ |
H A D | callable_003.phpt | 14 bar("substr"); 20 string(6) "substr"
|
/PHP-7.2/ext/pcre/ |
H A D | upgrade-pcre.php | 29 $newpcre = substr($newpcre, 0, strpos($newpcre, '.tar')); 53 $newfile = $newpcre . substr($file, $dirlen); 98 $file2 = 'pcrelib'.substr($file, strlen($newpcre));
|
/PHP-7.2/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…
|
/PHP-7.2/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-7.2/ext/opcache/tests/ |
H A D | bug75729.phpt | 13 var_dump(substr("foo", 1)); 14 var_dump(substr("foo", 1, 1));
|