Home
last modified time | relevance | path

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

12345678910>>...40

/PHP-7.2/ext/standard/tests/strings/
H A Dsubstr.phpt2 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 Dbug45166.phpt2 Bug #45166 (substr() )
5 echo substr('cd', -3) . "\n";
/PHP-7.2/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'));
61 $s1split[$i] = substr($chunk, 1);
71 $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-7.2/ext/
H A Dext_skel_win32.php30 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 Dbug62922.phpt5 var_dump(substr("", 0));
6 var_dump(substr("a", 1));
7 var_dump(substr("ab", 2));
/PHP-7.2/build/
H A Dscan_makefile_in.awk8 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 DgtCommandLineOptions.php30 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 Dinterbase.inc101 $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 Dbug47320.phpt8 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 D001.phpt70 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 Dfileobject_003.phpt25 $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 Dargument_count_incorrect_internal.phpt5 substr("foo");
8 Warning: substr() expects at least 2 parameters, 1 given in %s
H A Dargument_count_incorrect_internal_strict.phpt7 substr("foo");
16 substr() expects at least 2 parameters, 1 given
/PHP-7.2/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";
/PHP-7.2/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-7.2/Zend/tests/type_declarations/
H A Dcallable_003.phpt14 bar("substr");
20 string(6) "substr"
/PHP-7.2/ext/pcre/
H A Dupgrade-pcre.php29 $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 Dbug71020.phpt10 …$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 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-7.2/ext/opcache/tests/
H A Dbug75729.phpt13 var_dump(substr("foo", 1));
14 var_dump(substr("foo", 1, 1));

Completed in 30 milliseconds

12345678910>>...40