Home
last modified time | relevance | path

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

12345678910>>...33

/php-src/ext/dom/
H A Dhtml5_serializer.c39 return ctx->write_string_len(ctx->application_data, ">", strlen(">")); in dom_html5_serialize_doctype()
53 TRY(ctx->write_string_len(ctx->application_data, "<?", strlen("<?"))); in dom_html5_serialize_processing_instruction()
55 TRY(ctx->write_string_len(ctx->application_data, " ", strlen(" "))); in dom_html5_serialize_processing_instruction()
59 return ctx->write_string_len(ctx->application_data, ">", strlen(">")); in dom_html5_serialize_processing_instruction()
64 TRY(ctx->write_string_len(ctx->application_data, "&", strlen("&"))); in dom_html5_serialize_entity_ref()
66 return ctx->write_string_len(ctx->application_data, ";", strlen(";")); in dom_html5_serialize_entity_ref()
142 size_t name_length = strlen((const char *) parent->name); in dom_html5_serialize_text_node()
166 TRY(ctx->write_string_len(ctx->application_data, ":", strlen(":"))); in dom_html5_serialize_element_tag_name()
173 TRY(ctx->write_string_len(ctx->application_data, "<", strlen("<"))); in dom_html5_serialize_element_start()
179 TRY(ctx->write_string_len(ctx->application_data, " ", strlen(" "))); in dom_html5_serialize_element_start()
[all …]
/php-src/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-src/ext/standard/tests/strings/
H A Dstrlen_basic.phpt2 Test strlen() function : basic functionality
6 echo "*** Testing strlen() : basic functionality ***\n";
7 var_dump(strlen("abcdef"));
8 var_dump(strlen(" ab de "));
9 var_dump(strlen(""));
10 var_dump(strlen("\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"));
13 *** Testing strlen() : basic functionality ***
H A Dstrlen.phpt2 strlen() function
72 var_dump(strlen("$obj_string"));
93 var_dump(strlen($string));
98 var_dump(strlen($str));
105 var_dump(strlen("$str"));
106 var_dump(strlen("$str'S"));
107 var_dump(strlen("$strS"));
110 var_dump(strlen("${str}S"));
111 var_dump(strlen("{$str}S"));
120 var_dump(strlen(strlen("Hello"))); // len=1
[all …]
/php-src/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…
256 $uncomplength = strlen($data);
[all …]
/php-src/Zend/tests/heredoc_nowdoc/
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);
/php-src/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-src/ext/zend_test/tests/
H A Dobserver_closure_03.phpt11 var_dump(strlen(...)('test'));
17 <!-- init strlen() -->
18 <strlen>
19 </strlen>
/php-src/Zend/tests/
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"));
11 var_dump(strlen("xxx"));
26 var_dump(call_user_func("strlen"));
45 Call to undefined function strlen()
H A Dbug79382.phpt4 disable_functions=strlen
8 function strlen(string $x): int {
12 var_dump(strlen("foobar"));
/php-src/Zend/tests/first_class_callable/
H A Dfirst_class_callable_007.phpt5 $strlen = strlen(...);
7 if ($strlen("Hello World") === 11) {
/php-src/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-src/ext/standard/tests/file/
H A Dbug38450.phpt27 $this->position += strlen($ret);
34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
36 $this->position += strlen($data);
37 return strlen($data);
47 return $this->position >= strlen($GLOBALS[$this->varname]);
53 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
71 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
72 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
H A Dbug38450_1.phpt27 $this->position += strlen($ret);
34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
36 $this->position += strlen($data);
37 return strlen($data);
47 return $this->position >= strlen($GLOBALS[$this->varname]);
53 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
71 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
72 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
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_2.phpt27 $this->position += strlen($ret);
34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data));
36 $this->position += strlen($data);
37 return strlen($data);
47 return $this->position >= strlen($GLOBALS[$this->varname]);
53 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
71 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
72 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
/php-src/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-src/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-src/Zend/tests/namespaces/
H A Dns_013.phpt7 function strlen($x) {
11 echo strlen("Hello"),"\n";
14 test\ns1\strlen
H A Dns_016.phpt7 function strlen($x) {
11 $x = "test\\ns1\\strlen";
15 test\ns1\strlen
/php-src/ext/ffi/tests/
H A Dgh10568.phpt8 $libc = FFI::cdef("void strlen(const char *s);", "libc.so.6");
17 // Yes, I know that strlen does not return void, but I need a simple & portable test case.
18 $libc = FFI::cdef("void strlen(const char *s);", "libc.so.6");
19 var_dump($libc->strlen("abc"));

Completed in 56 milliseconds

12345678910>>...33