Home
last modified time | relevance | path

Searched refs:len (Results 126 – 150 of 477) sorted by relevance

12345678910>>...20

/PHP-7.4/ext/oci8/tests/
H A Dlob_008.phpt38 $len = 0;
40 $len += strlen($row[0]->read(1024));
42 var_dump($len);
/PHP-7.4/ext/standard/
H A Dstring.c301 if (len < 0) { in php_spn_common_handler()
304 len = 0; in php_spn_common_handler()
1222 len++; in php_implode()
1226 len++; in php_implode()
1463 e = c+len; in php_strtolower()
1531 cnt = len;
3117 len--;
4245 len -= i;
4258 len--;
4266 len--;
[all …]
H A Diptc.c320 size_t inx = 0, len; in PHP_FUNCTION() local
356 len = (((zend_long) buffer[ inx + 2 ]) << 24) + (((zend_long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
360 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
364 if ((len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION()
380 add_next_index_stringl(element, (char *) buffer+inx, len); in PHP_FUNCTION()
381 inx += len; in PHP_FUNCTION()
/PHP-7.4/win32/
H A Dioutil.h158 #define PHP_WIN32_IOUTIL_PATH_IS_OK_W(pathw, len) \ argument
159 (!((len) >= 1 && L' ' == pathw[(len)-1] || \
160 …(len) > 1 && !PHP_WIN32_IOUTIL_IS_SLASHW(pathw[(len)-2]) && L'.' != pathw[(len)-2] && L'.' == path…
173 …normalization_result php_win32_ioutil_normalize_path_w(wchar_t **buf, size_t len, size_t *new_len);
265 PW32IO size_t php_win32_ioutil_dirname(char *buf, size_t len);
270 PW32IO wchar_t *php_win32_ioutil_getcwd_w(wchar_t *buf, size_t len);
492 __forceinline static char *php_win32_ioutil_getcwd(char *buf, size_t len) in php_win32_ioutil_getcwd() argument
499 if (php_win32_ioutil_getcwd_w(tmp_bufw, len ? len : PHP_WIN32_IOUTIL_MAXPATHLEN) == NULL) { in php_win32_ioutil_getcwd()
514 } else if (tmp_bufa_len + 1 > len) { in php_win32_ioutil_getcwd()
520 if (!buf && !len) { in php_win32_ioutil_getcwd()
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitProtExecAllocator.c120 size_t len; in create_tempfile() local
130 len = (P_tmpdir != NULL) ? strlen(P_tmpdir) : 0; in create_tempfile()
132 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile()
134 tmp_name_len = len; in create_tempfile()
148 len = strlen(dir); in create_tempfile()
149 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile()
151 tmp_name_len = len; in create_tempfile()
/PHP-7.4/ext/standard/tests/strings/
H A Dstrcspn_variation10.phpt2 Test strcspn() function : usage variations - with varying mask & default start and len args
5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
13 * Testing strcspn() : with varying mask and default start and len arguments
16 echo "*** Testing strcspn() : with different mask strings and default start and len arguments ***\n…
67 *** Testing strcspn() : with different mask strings and default start and len arguments ***
H A Dstrspn_variation10.phpt2 Test strspn() function : usage variations - with varying mask & default start and len args
5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
13 * Testing strspn() : with varying mask and default start and len arguments
16 echo "*** Testing strspn() : with different mask strings and default start and len arguments ***\n";
69 *** Testing strspn() : with different mask strings and default start and len arguments ***
H A Dstrspn_variation6.phpt2 …spn() function : usage variations - with heredoc strings, varying mask & default start and len args
5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
13 * Testing strspn() : with heredoc string, varying mask and default start and len arguments
86 var_dump( strspn($str,$mask) ); // with default start and len value
H A Dstrlen.phpt23 "\x000", // len = 2
24 "\xABC", // len = 2
25 "\0000", // len = 2
28 "\t", // len = 1
29 '\t', // len = 2
118 var_dump(strlen(10.55555555555555555555555555)); // len = 13
119 var_dump(strlen(10.55555555595555555555555555)); // len = 12
122 var_dump(strlen(strlen("Hello"))); // len=1
H A Dstrcspn_variation5.phpt2 Test strcspn() function : usage variations - with heredoc strings with default start and len args
5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars)
70 var_dump( strcspn($str,$mask) ); // with default start and len values
H A Dstrspn_variation5.phpt2 Test strspn() function : usage variations - with heredoc strings with default start and len args
5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)
70 var_dump( strspn($str,$mask) ); // with default start and len values
/PHP-7.4/ext/zlib/tests/
H A Dbug60761.phpt27 $len = strlen($html);
29 $lens[$len] = $len;
/PHP-7.4/ext/bcmath/libbcmath/src/
H A Doutput.c70 int len, ix; local
74 len = strlen (digits);
75 while (size > len)
80 for (ix=0; ix < len; ix++)
/PHP-7.4/ext/standard/tests/file/
H A Dfgets_error.phpt22 $len = 0;
23 var_dump( fgets($fp, $len) );
24 $len = -10;
25 var_dump( fgets($fp, $len) );
26 $len = 1;
27 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
H A Dfgetss_error.phpt24 $len = 0;
26 var_dump( fgetss($fp, $len, $allowable_tags) );
27 $len = -10;
28 var_dump( fgetss($fp, $len, $allowable_tags) );
29 $len = 1;
30 var_dump( fgetss($fp, $len, $allowable_tags) ); // return length - 1 always, expect false
/PHP-7.4/main/
H A Drfc1867.c587 int len = haystacklen; in php_ap_memstr() local
597 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr()
602 ptr++; len--; in php_ap_memstr()
611 size_t len, max; in multipart_buffer_read() local
633 if (len > 0) { in multipart_buffer_read()
637 buf[len] = 0; in multipart_buffer_read()
639 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read()
640 buf[--len] = 0; in multipart_buffer_read()
645 self->buf_begin += len; in multipart_buffer_read()
648 return len; in multipart_buffer_read()
[all …]
/PHP-7.4/ext/hash/
H A Dhash_joaat.c73 joaat_buf(void *buf, size_t len, uint32_t hval) in joaat_buf() argument
78 for (i = 0; i < len; i++) { in joaat_buf()
H A Dhash_adler32.c28 …P_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) in PHP_ADLER32Update() argument
34 for (i = 0; i < len; ++i) { in PHP_ADLER32Update()
H A Dphp_hash_fnv.h65 static uint32_t fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate);
66 static uint64_t fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate);
/PHP-7.4/ext/readline/
H A Dreadline_cli.c216 for (i = 0; i < len; ++i) { in cli_is_valid_code()
282 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code()
570 size_t len = ZSTR_LEN(ce->name) + 2 + strlen(retval) + 1; in cli_completion_generator() local
571 char *tmp = malloc(len); in cli_completion_generator()
573 snprintf(tmp, len, "%s::%s", ZSTR_VAL(ce->name), retval); in cli_completion_generator()
591 size_t size = 4096, pos = 0, len; in readline_shell_run() local
626 len = strlen(line); in readline_shell_run()
646 if (pos + len + 2 > size) { in readline_shell_run()
647 size = pos + len + 2; in readline_shell_run()
650 memcpy(&code[pos], line, len); in readline_shell_run()
[all …]
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_help.c180 const char *key, size_t len, /* pointer and length of key */ in get_command() argument
188 if (len == 1) { in get_command()
199 if (!strncmp(c->name, key, len)) { in get_command()
243 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands); in PHPDBG_COMMAND()
251 if (param->len > 1) { in PHPDBG_COMMAND()
253 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND()
285 int len; in PHPDBG_HELP() local
294 len = 20 - 1 - c->name_len; in PHPDBG_HELP()
298 c->alias, c_sub->alias, c->name, len, c_sub->name, c_sub->tip); in PHPDBG_HELP()
313 len = 20 - 1 - c->name_len; in PHPDBG_HELP()
[all …]
/PHP-7.4/ext/mbstring/tests/
H A Dbug52981.phpt10 $len = strlen($upper);
11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_intmodedep.h265 #define GETCHARLEN(c, eptr, len) c = *eptr; argument
329 #define GETCHARLEN(c, eptr, len) \ argument
331 if (c >= 0xc0u) GETUTF8LEN(c, eptr, len);
337 #define GETCHARLENTEST(c, eptr, len) \ argument
339 if (utf && c >= 0xc0u) GETUTF8LEN(c, eptr, len);
427 #define GETUTF16LEN(c, eptr, len) \ argument
434 #define GETCHARLEN(c, eptr, len) \ argument
436 if ((c & 0xfc00u) == 0xd800u) GETUTF16LEN(c, eptr, len);
442 #define GETCHARLENTEST(c, eptr, len) \ argument
507 #define GETCHARLEN(c, eptr, len) \ argument
[all …]
/PHP-7.4/ext/soap/tests/
H A Dbug73037.phpt85 $len = strlen($data);
87 //echo "len=$len\n";
95 Content-Length: ${len}
123 $len = $pos - $pos0;
124 echo substr($out, $pos0, $len);
/PHP-7.4/ext/opcache/
H A Dzend_file_cache.c217 size_t len; local
230 size_t new_len = info->str_size + len;
237 info->str_size += len;
834 size_t len; local
841 filename[len] = '/';
851 filename[len] = '\\';
853 len += 1 + 32;
854 filename[len] = '\\';
860 *(filename + len + 33) = '\\';
863 *(filename + len + 38) = '\\';
[all …]

Completed in 110 milliseconds

12345678910>>...20