Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 779) sorted by path

12345678910>>...32

/php-src/
H A DCODING_STANDARDS.md44 calculated with `strlen()`. Write your functions in such a way so that
48 doesn't have to be recalculated with `strlen()` (e.g. `php_addslashes()`).
269 1. The length of constant string literals should be calculated via ``strlen()``
/php-src/TSRM/
H A Dtsrm_win32.c123 ptc_sid_len = strlen(ptcSid); in tsrm_win32_get_path_sid_key()
207 if(!IS_ABSOLUTE_PATH(pathname, strlen(pathname)+1)) { in tsrm_win32_access()
274 bucket = realpath_cache_lookup(pathname, strlen(pathname), t); in tsrm_win32_access()
280 bucket = realpath_cache_lookup(pathname, strlen(pathname), t); in tsrm_win32_access()
467 type_len = (int)strlen(type); in popen_ex()
480 cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /s /c ")+2); in popen_ex()
/php-src/Zend/
H A Dbench.php20 strlen("hallo");
342 $len = strlen($str);
367 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));
380 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
H A Dmicro_bench.php262 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));
279 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
/php-src/Zend/tests/
H A Dassign_coalesce_009.phpt5 strlen("foo")[0] ??= 123;
H A Dbug21478.phpt10 $consumed += strlen($bucket->data);
H A Dbug26696.phpt6 $len = strlen($str);
H A Dbug38779.phpt17 $this->position += strlen($ret);
21 return $this->position >= strlen($this->data);
24 return array('size' => strlen($this->data));
H A Dbug38779_1.phpt17 $this->position += strlen($ret);
21 return $this->position >= strlen($this->data);
H A Dbug64966.phpt15 test("strlen");
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 Dbug70681.phpt9 $c = (new ReflectionFunction('strlen'))->getClosure();
H A Dbug78340.phpt21 $this->pos+= strlen($chunk);
26 return $this->pos >= strlen($this->bytes);
36 'size' => strlen($this->bytes),
H A Dbug78406.phpt22 $consumed = strlen($this->data);
H A Dbug79382.phpt4 disable_functions=strlen
8 function strlen(string $x): int {
12 var_dump(strlen("foobar"));
H A Dbug79783.phpt5 str_replace("a", "b", "c", strlen("d"));
H A Dbuiltin_in_write_context_error1.phpt6 strlen("foo")[0] = 1;
H A Dbuiltin_in_write_context_error2.phpt6 $ref =& strlen("foo");
H A Dby_ref_optimization.phpt6 call_user_func('ref', function_exists('strlen'));
7 ref(function_exists('strlen'));
H A Dcall_user_func_strict_arginfo_check.phpt9 // strlen() will be called with strict_types=0, so this is legal.
10 var_dump(call_user_func('strlen', false));
H A Dclosure_061.phpt30 ['strlen', [
95 echo "$fnStr()\n" . str_repeat('-', strlen($fnStr) + 2), "\n\n";
132 strlen()
H A Dclosure_compare.phpt14 $closures[0] = Closure::fromCallable('strlen');
15 $closures[1] = Closure::fromCallable('strlen');
17 printf("strlen == strlen: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
19 $closures[0] = Closure::fromCallable('strlen');
22 printf("strlen != strrev: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
103 strlen == strlen: OK
104 strlen != strrev: OK
H A Dconcat_002.phpt18 var_dump(strlen($result));
H A Dexception_from_toString.phpt91 try { strlen($badStr); } catch (Exception $e) { echo "Exception\n"; }
H A Dfirst_class_callable_007.phpt5 $strlen = strlen(...);
7 if ($strlen("Hello World") === 11) {

Completed in 32 milliseconds

12345678910>>...32