Home
last modified time | relevance | path

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

12345678910>>...32

/php-src/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-src/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-src/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-src/benchmark/
H A Dgenerate_diff.php13 …$headSummaryFile = $repo . '/' . substr($headCommitHash, 0, 2) . '/' . $headCommitHash . '/summary…
14 …$baseSummaryFile = $repo . '/' . substr($baseCommitHash, 0, 2) . '/' . $baseCommitHash . '/summary…
24 $headCommitHashShort = substr($headCommitHash, 0, 7);
25 $baseCommitHashShort = substr($baseCommitHash, 0, 7);
/php-src/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-src/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-src/ext/spl/tests/SplFileObject/
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-src/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.phpt26 echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
34 echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
42 echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
/php-src/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-src/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-src/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-src/Zend/tests/type_declarations/
H A Dcallable_003.phpt14 bar("substr");
21 string(6) "substr"
/php-src/ext/iconv/tests/
H A Diconv_substr.phpt18 hexdump(substr($str, $offset, $len));
24 var_dump(substr($str, $offset));
27 var_dump(substr($str, $offset, $len));
/php-src/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);
/php-src/ext/sodium/tests/
H A Dcrypto_stream_xchacha20.phpt59 sodium_crypto_stream_xchacha20($len, substr($nonce, 1), $key);
64 sodium_crypto_stream_xchacha20($len, $nonce, substr($key, 1));
69 sodium_crypto_stream_xchacha20_xor($stream, substr($nonce, 1), $key);
74 sodium_crypto_stream_xchacha20_xor($stream, $nonce, substr($key, 1));

Completed in 31 milliseconds

12345678910>>...32