Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/PHP-7.4/ext/standard/tests/strings/
H A Dstrlen_basic.phpt2 Test strlen() function : basic functionality
6 /* Prototype : int strlen ( string $string )
11 echo "*** Testing strlen() : basic functionality ***\n";
12 var_dump(strlen("abcdef"));
13 var_dump(strlen(" ab de "));
14 var_dump(strlen(""));
15 var_dump(strlen("\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"));
19 *** Testing strlen() : basic functionality ***
H A Dstrlen.phpt2 strlen() function
78 var_dump(strlen($str_arr));
95 var_dump(strlen($string));
100 var_dump(strlen($str));
107 var_dump(strlen("$str"));
108 var_dump(strlen("$str'S"));
109 var_dump(strlen("$strS"));
122 var_dump(strlen(strlen("Hello"))); // len=1
127 strlen();
130 strlen("", "");
[all …]
/PHP-7.4/ext/phar/
H A Dmakestub.php13 $token[1] = strlen($n) ? $n : ' ';
21 $slen = strlen($s) - strlen('index.php') - strlen("000");
27 $s = substr($s, strlen($webs) + strlen("000"));
29 $s2 = substr($s, strlen($s1) + strlen('index.php'));
31 $s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php'));
62 if ($chunk[strlen($chunk) - 1] == '\\') {
72 if ($chunk[strlen($chunk) - 1] == '\\') {
H A Dshortarc.php67 …$pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basenam…
75 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) {
122 if ($L[1] - strlen($m) < 8192) {
123 $read = $L[1] - strlen($m);
127 } while (strlen($last) && strlen($m) < $L[1]);
129 if (strlen($m) < $L[1]) {
131 strlen($m) .'" should be "' .
180 if ($path[strlen($path) - 1] == '/') {
266 if (strlen($data) != $entry[0]) {
267 die("Invalid internal .phar file (size error " . strlen($data) . " != " .
/PHP-7.4/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc173 $offset = strlen($central);
181 $offset = strlen($central);
189 $offset = strlen($central);
197 $offset = strlen($central);
205 $offset = strlen($central);
213 $offset = strlen($central);
221 $offset = strlen($central);
237 $offset = strlen($central);
243 …pack("VVVvvvvvVV", $crc32, $complength, $uncomplength, strlen($filename), strlen($extra),strlen($c…
246 $offset = strlen($central);
[all …]
/PHP-7.4/ext/oci8/tests/
H A Dbind_char_1.phpt219 Test 1.4: Type: AFC: Length: strlen
224 Test 1.5: Type: AFC. Length: strlen-1
226 Test 1.6: Type: AFC. Length: strlen+1
240 Test 2.4: Type: AFC: Length: strlen
242 Test 2.5: Type: AFC. Length: strlen-1
244 Test 2.6: Type: AFC. Length: strlen+1
264 Test 3.4: Type: AFC: Length: strlen
269 Test 3.5: Type: AFC. Length: strlen-1
271 Test 3.6: Type: AFC. Length: strlen+1
285 Test 4.4: Type: AFC: Length: strlen
[all …]
H A Dbind_char_1_11gR1.phpt221 Test 1.4: Type: AFC: Length: strlen
226 Test 1.5: Type: AFC. Length: strlen-1
228 Test 1.6: Type: AFC. Length: strlen+1
242 Test 2.4: Type: AFC: Length: strlen
244 Test 2.5: Type: AFC. Length: strlen-1
246 Test 2.6: Type: AFC. Length: strlen+1
266 Test 3.4: Type: AFC: Length: strlen
271 Test 3.5: Type: AFC. Length: strlen-1
273 Test 3.6: Type: AFC. Length: strlen+1
287 Test 4.4: Type: AFC: Length: strlen
[all …]
H A Dbind_char_2_11gR1.phpt51 echo "Test 1.4: Type: AFC: Length: strlen\n";
52 $r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1), SQLT_AFC);
56 echo "Test 1.5: Type: AFC. Length: strlen-1\n";
57 $r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)-1, SQLT_AFC);
61 echo "Test 1.6: Type: AFC. Length: strlen+1\n";
62 $r = oci_bind_by_name($s, ":bv", $bv1, strlen($bv1)+1, SQLT_AFC);
107 Test 1.4: Type: AFC: Length: strlen
111 Test 1.5: Type: AFC. Length: strlen-1
113 Test 1.6: Type: AFC. Length: strlen+1
/PHP-7.4/Zend/tests/
H A Dnowdoc_016.phpt9 var_dump(strlen($test));
15 var_dump(strlen($test));
21 var_dump(strlen($test));
27 var_dump(strlen($test));
33 var_dump(strlen($test));
H A Dheredoc_015.phpt9 var_dump(strlen($test) == 0);
15 var_dump(strlen($test) == 1);
21 var_dump(strlen($test) == 1);
27 var_dump(strlen($test) == 1);
33 var_dump(strlen($test) == 2);
H A Dheredoc_016.phpt9 var_dump(strlen($test) == 0);
15 var_dump(strlen($test) == 1);
21 var_dump(strlen($test) == 1);
27 var_dump(strlen($test) == 1);
33 var_dump(strlen($test) == 2);
H A Dbug69315.phpt4 disable_functions=strlen,defined,call_user_func,constant,is_string
8 var_dump(function_exists("strlen"));
9 var_dump(is_callable("strlen"));
10 var_dump(strlen("xxx"));
13 var_dump(call_user_func("strlen"));
19 Warning: strlen() has been disabled for security reasons in %sbug69315.php on line %d
H A Dns_013.phpt7 function strlen($x) {
11 echo strlen("Hello"),"\n";
13 test\ns1\strlen
H A Dns_016.phpt7 function strlen($x) {
11 $x = "test\\ns1\\strlen";
14 test\ns1\strlen
/PHP-7.4/ext/mbstring/tests/
H A Dmb_strlen.phpt24 print strlen($ascii) . "\n";
30 print strlen($euc_jp) . "\n";
37 print strlen($sjis) . "\n";
40 // Note: either convert_encoding or strlen has problem
45 print strlen($jis) . "\n";
48 // Note: either convert_encoding or strlen has problem
53 print strlen($utf8) . "\n";
59 // Note: PHP Warning, strlen() expects parameter 1 to be string, array given
60 $r = strlen($t_ary);
63 // Note: PHP Warning, strlen() expects parameter 1 to be string, object given
[all …]
/PHP-7.4/ext/zlib/tests/
H A D001.phpt9 echo strlen($packed)." ".strlen($original)."\n";
16 echo strlen($packed)." ".strlen($original)."\n";
22 echo strlen($packed)." ".strlen($original)."\n";
H A D002.phpt9 echo strlen($packed)." ".strlen($original)."\n";
16 echo strlen($packed)." ".strlen($original)."\n";
/PHP-7.4/ext/standard/tests/file/
H A Dbug44607.phpt12 var_dump(strlen(stream_get_line($fd, 15000, $eol)));
13 var_dump(strlen(stream_get_line($fd, 15000, $eol)));
15 var_dump(strlen(stream_get_line($fd, 15000, $eol)));
16 var_dump(strlen(stream_get_line($fd, 15000, $eol)));
H A Dbug38450.phpt26 $this->position += strlen($ret);
33 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
35 $this->position += strlen($data);
36 return strlen($data);
46 return $this->position >= strlen($GLOBALS[$this->varname]);
52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
H A Dbug38450_1.phpt26 $this->position += strlen($ret);
33 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
35 $this->position += strlen($data);
36 return strlen($data);
46 return $this->position >= strlen($GLOBALS[$this->varname]);
52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
H A Dbug38450_2.phpt26 $this->position += strlen($ret);
33 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
35 $this->position += strlen($data);
36 return strlen($data);
46 return $this->position >= strlen($GLOBALS[$this->varname]);
52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
/PHP-7.4/ext/phar/tests/cache_list/files/
H A Dphar_test.inc35 if (empty($ulen)) $ulen = strlen($cont);
36 if (empty($clen)) $clen = strlen($comp);
41 $manifest .= pack('V', strlen($name)) . (binary)$name;
42 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
53 …files), isset($hasdir) ? 0x1110 : 0x1000, $gflags, strlen($alias)) . (binary)$alias . pack('V', st…
55 $file .= pack('V', strlen($manifest)) . $manifest;
/PHP-7.4/ext/phar/tests/files/
H A Dphar_test.inc35 if (empty($ulen)) $ulen = strlen($cont);
36 if (empty($clen)) $clen = strlen($comp);
41 $manifest .= pack('V', strlen($name)) . (binary)$name;
42 …$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$m…
53 …files), isset($hasdir) ? 0x1110 : 0x1000, $gflags, strlen($alias)) . (binary)$alias . pack('V', st…
55 $file .= pack('V', strlen($manifest)) . $manifest;
/PHP-7.4/ext/sodium/tests/
H A Dcrypto_sign.phpt8 var_dump(strlen($keypair) === SODIUM_CRYPTO_SIGN_KEYPAIRBYTES);
10 var_dump(strlen($sk) === SODIUM_CRYPTO_SIGN_SECRETKEYBYTES);
12 var_dump(strlen($pk) === SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES);
25 var_dump(strlen($msg_signed) - strlen($msg) === SODIUM_CRYPTO_SIGN_BYTES);
41 var_dump(strlen($msg_signed) - strlen($msg) === SODIUM_CRYPTO_SIGN_BYTES);
47 var_dump(strlen($signature) === SODIUM_CRYPTO_SIGN_BYTES);
/PHP-7.4/ext/sodium/
H A Dsodium_pwhash.c51 if ((opt = zend_hash_str_find(options, "memory_cost", strlen("memory_cost")))) { in get_options()
60 if ((opt = zend_hash_str_find(options, "time_cost", strlen("time_cost")))) { in get_options()
67 …if ((opt = zend_hash_str_find(options, "threads", strlen("threads"))) && (zval_get_long(opt) != 1)… in get_options()
94 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_sodium_argon2_hash()
127 if (!memcmp(p, "$argon2i$", strlen("$argon2i$"))) { in php_sodium_argon2_get_info()
128 p += strlen("$argon2i$"); in php_sodium_argon2_get_info()
129 } else if (!memcmp(p, "$argon2id$", strlen("$argon2id$"))) { in php_sodium_argon2_get_info()
130 p += strlen("$argon2id$"); in php_sodium_argon2_get_info()
176 zend_string *argon2i = zend_string_init("argon2i", strlen("argon2i"), 1); in PHP_MINIT_FUNCTION()

Completed in 84 milliseconds

12345678910>>...29