/php-src/ext/standard/tests/streams/ |
H A D | stream_set_chunk_size.phpt | 18 echo "write with size: ", strlen($data), "\n"; 19 return strlen($data); 37 var_dump(strlen(fread($f, 10000))); 44 var_dump(strlen(fread($f, 250))); 46 var_dump(strlen(fread($f, 50))); 48 var_dump(strlen(fread($f, 50))); 50 var_dump(strlen(fwrite($f, str_repeat('b', 250))));
|
H A D | proc_open_bug51800_right2.phpt | 29 while ($i0 < strlen($data0) && $i1 < strlen($data1)) { 63 ), strlen($stdout), strlen($stderr));
|
/php-src/ext/standard/ |
H A D | crypt.c | 90 return zend_string_init(out, strlen(out), 0); in php_crypt() 103 result = zend_string_init(output, strlen(output), 0); in php_crypt() 118 result = zend_string_init(output, strlen(output), 0); in php_crypt() 137 result = zend_string_init(output, strlen(output), 0); in php_crypt() 151 result = zend_string_init(crypt_res, strlen(crypt_res), 0); in php_crypt() 181 result = zend_string_init(crypt_res, strlen(crypt_res), 0); in php_crypt()
|
H A D | type.c | 66 RETURN_NEW_STR(zend_string_init(name, strlen(name), 0)); in PHP_FUNCTION() 162 size_t strlen = Z_STRLEN_P(num); in PHP_FUNCTION() local 164 while (isspace(*strval) && strlen) { in PHP_FUNCTION() 166 strlen--; in PHP_FUNCTION() 170 if (strlen > 2) { in PHP_FUNCTION() 178 strlen -= 2; /* Removing "0b" */ in PHP_FUNCTION() 179 tmpval = emalloc(strlen + 1); in PHP_FUNCTION() 187 memcpy(tmpval + offset, strval + offset + 2, strlen - offset); in PHP_FUNCTION() 188 tmpval[strlen] = 0; in PHP_FUNCTION()
|
/php-src/ext/zlib/tests/ |
H A D | gzseek_variation1.phpt | 14 gzseek($h, strlen($str1) + 20); 18 echo gzread($h, strlen($str1))."\n"; 20 echo gzread($h, strlen($str2))."\n";
|
H A D | 003.phpt | 9 echo strlen($packed)." ".strlen($original). "\n";
|
/php-src/Zend/tests/ |
H A D | ns_017.phpt | 7 function strlen($x) { 11 $x = "strlen";
|
H A D | ns_015.phpt | 7 function strlen($x) { 11 echo \strlen("Hello"),"\n";
|
H A D | call_user_func_strict_arginfo_check.phpt | 9 // strlen() will be called with strict_types=0, so this is legal. 10 var_dump(call_user_func('strlen', false));
|
H A D | null_to_non_nullable_special_func.phpt | 7 var_dump(strlen($null)); 11 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in %s on …
|
H A D | bug38779.phpt | 17 $this->position += strlen($ret); 21 return $this->position >= strlen($this->data); 24 return array('size' => strlen($this->data));
|
H A D | first_class_callable_assert.phpt | 17 assert(false && strlen(...)); 25 assert(false && strlen(...))
|
/php-src/ext/pdo/tests/ |
H A D | bug_43130.phpt | 9 if (!strncasecmp(getenv('PDOTEST_DSN'), 'sqlite', strlen('sqlite'))) die('skip not relevant for sql… 10 if (!strncasecmp(getenv('PDOTEST_DSN'), 'pgsql', strlen('pgsql'))) die('skip not relevant for pgsql… 11 if (!strncasecmp(getenv('PDOTEST_DSN'), 'oci', strlen('oci'))) die('skip not relevant for oci drive… 12 if (!strncasecmp(getenv('PDOTEST_DSN'), 'firebird', strlen('firebird'))) die('skip not relevant for… 13 if (!strncasecmp(getenv('PDOTEST_DSN'), 'odbc', strlen('odbc'))) die('skip not relevant for odbc dr…
|
/php-src/ext/standard/tests/file/ |
H A D | include_streams.phpt | 44 $this->position = strlen($GLOBALS[$this->varname]); 54 $this->position += strlen($ret); 65 return $this->position >= strlen($GLOBALS[$this->varname]); 72 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) { 88 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) { 89 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
|
/php-src/ext/mbstring/tests/ |
H A D | mb_str_split_utf8_utf16.phpt | 37 printf(" l:%d v:%s", strlen($chunk), unpack("H*", $chunk)[1]); 43 printf(" l:%d v:%s", strlen($chunk), unpack("H*", $chunk)[1]); 49 printf(" l:%d v:%s", strlen($chunk), unpack("H*", $chunk)[1]); 55 printf(" l:%d v:%s", strlen($chunk), unpack("H*", $chunk)[1]); 61 printf(" l:%d v:%s", strlen($chunk), unpack("H*", $chunk)[1]); 67 printf(" l:%d v:%s", strlen($chunk), unpack("H*", $chunk)[1]);
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_env.c | 35 if ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0) { in setenv() 45 int name_len = strlen(name); in setenv() 46 int value_len = strlen(value); in setenv() 126 size_t prefixlen = strlen(SETPROCTITLE_PREFIX); in fpm_env_setproctitle() 251 last = fpm_globals.argv[i] + strlen(fpm_globals.argv[i]); in fpm_env_init_main() 260 last = environ[i] + strlen(environ[i]); in fpm_env_init_main()
|
/php-src/ext/phar/phar/ |
H A D | clicommand.inc | 82 if (strlen($missing)) { 116 $l = strlen($prefix); 162 if (strlen($arg)) { 163 … if (strlen($arg) > 1 && $arg[0] == $arg[strlen($arg)-1] && strpos('/,', $arg) !== false) { 250 if (strlen($arg)) { 257 $l2 = strlen($sp2); 266 $l3 = strlen($sp3); 272 if (strlen($inf)) { 304 $l = strlen($which); 311 $l = max($l, strlen($name)); [all …]
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 210 php_firebird_error_stmt_with_info(stmt, "HY000", strlen("HY000"), msg, strlen(msg)); in pdo_firebird_stmt_fetch() 326 php_firebird_error_stmt_with_info(stmt, "HY000", strlen("HY000"), msg, strlen(msg)); in php_firebird_fetch_blob() 368 php_firebird_error_stmt_with_info(stmt, "HY000", strlen("HY000"), msg, strlen(msg)); in php_firebird_fetch_blob() 562 php_firebird_error_stmt_with_info(stmt, "HY093", strlen("HY093"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() 588 php_firebird_error_stmt_with_info(stmt, "HY093", strlen("HY093"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() 640 php_firebird_error_stmt_with_info(stmt, "HY000", strlen("HY000"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() 649 php_firebird_error_stmt_with_info(stmt, "HY105", strlen("HY105"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() 698 php_firebird_error_stmt_with_info(stmt, "HY105", strlen("HY105"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() 711 php_firebird_error_stmt_with_info(stmt, "HY105", strlen("HY105"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() 763 php_firebird_error_stmt_with_info(stmt, "HY105", strlen("HY105"), msg, strlen(msg)); in pdo_firebird_stmt_param_hook() [all …]
|
/php-src/ext/intl/locale/ |
H A D | locale_methods.c | 272 if( str && ((len=strlen(str))>0) ){ in getSingletonPos() 355 if (strlen(loc_name) > INTL_MAX_LOCALE_LEN) { in get_icu_value_internal() 461 tag_value->len = strlen(tag_value->val); in get_icu_value_internal() 493 loc_name_len = strlen(loc_name); in get_icu_value_src_php() 748 INTL_CHECK_LOCALE_LEN(strlen(loc_name)); in PHP_FUNCTION() 1055 len = strlen(mod_loc_name); in get_private_subtags() 1140 INTL_CHECK_LOCALE_LEN(strlen(loc_name)); in PHP_FUNCTION() 1184 loc_name_len = strlen(loc_name); in PHP_FUNCTION() 1281 loc_range_len = strlen(loc_range); in PHP_FUNCTION() 1505 saved_pos = strlen(cur_loc_range); in lookup_loc_range() [all …]
|
/php-src/ext/phar/tests/ |
H A D | phar_createdefaultstub.phpt | 110 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 158 $read = $L[1] - strlen($m); 162 } while (strlen($last) && strlen($m) < $L[1]); 164 if (strlen($m) < $L[1]) { 404 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 452 $read = $L[1] - strlen($m); 456 } while (strlen($last) && strlen($m) < $L[1]); 458 if (strlen($m) < $L[1]) { 706 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 758 } while (strlen($last) && strlen($m) < $L[1]); [all …]
|
H A D | phar_setdefaultstub.phpt | 130 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 178 $read = $L[1] - strlen($m); 182 } while (strlen($last) && strlen($m) < $L[1]); 184 if (strlen($m) < $L[1]) { 425 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 473 $read = $L[1] - strlen($m); 477 } while (strlen($last) && strlen($m) < $L[1]); 479 if (strlen($m) < $L[1]) { 720 if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { 772 } while (strlen($last) && strlen($m) < $L[1]); [all …]
|
/php-src/Zend/tests/use_function/ |
H A D | shadow_core.phpt | 8 use function foo\strlen; 10 var_dump(strlen('foo bar baz'));
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionFunction_isAnonymous.phpt | 8 $rf = new ReflectionFunction('strlen'); 11 $rf = new ReflectionFunction(strlen(...));
|
/php-src/ext/bz2/tests/ |
H A D | bug71263.phpt | 12 echo "Compressed len = ", strlen($compressed), "\n"; 18 $compressed[strlen($compressed) - 15] = 'X'; 23 $compressed = substr($compressed, 0, strlen($compressed) - 20); 28 $compressed[strlen($compressed)-2] = 'X';
|
/php-src/main/ |
H A D | fopen_wrappers.c | 160 path_len = strlen(path); 171 path_len = strlen(resolved_name); 227 size_t basedir_len = strlen(basedir); 244 resolved_name_len = strlen(resolved_name); 301 if (strlen(path) > (MAXPATHLEN - 1)) { 417 size_t path_len = strlen(path_info); 553 size_t len = strlen(ptr); 651 filename_length = strlen(filename); 679 size_t path_length = strlen(path); 780 path_len = strlen(filepath); [all …]
|