/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_io.h | 29 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo); 30 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len); 31 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo); 32 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len);
|
H A D | phpdbg_utils.c | 133 len--; in phpdbg_is_class_method() 205 --len; in phpdbg_trim() 209 --len; in phpdbg_trim() 212 if (len == 0) { in phpdbg_trim() 216 new = estrndup(p, len); in phpdbg_trim() 217 *(new + len) = '\0'; in phpdbg_trim() 220 *new_len = len; in phpdbg_trim() 442 while (i++ < len) { in phpdbg_parse_variable_with_arg() 443 if (i == len) { in phpdbg_parse_variable_with_arg() 475 if (i == len || (i == len - 1 && input[len - 1] == ']')) { in phpdbg_parse_variable_with_arg() [all …]
|
/PHP-8.0/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 178 int len; in odbc_stmt_execute() local 236 if (len == 0) { in odbc_stmt_execute() 373 P->len *= 2; in odbc_stmt_param_hook() 389 P->len, in odbc_stmt_param_hook() 390 &P->len in odbc_stmt_param_hook() 438 P->len += len; in odbc_stmt_param_hook() 730 *len = used; in odbc_stmt_get_col() 739 *len = 0; in odbc_stmt_get_col() 748 *len = 0; in odbc_stmt_get_col() 761 *len = 0; in odbc_stmt_get_col() [all …]
|
/PHP-8.0/ext/intl/ |
H A D | intl_common.h | 27 # define UBYTES(len) ((len) * sizeof(UChar)) argument 39 #define UCHARS(len) ((len) / sizeof(UChar)) argument
|
/PHP-8.0/ext/sodium/tests/ |
H A D | crypto_stream.phpt | 10 $len = 100; 11 $stream = sodium_crypto_stream($len, $nonce, $key); 14 $stream2 = sodium_crypto_stream($len, $nonce, $key); 17 $stream3 = sodium_crypto_stream($len, $nonce, $key); 20 $stream4 = sodium_crypto_stream($len, $nonce, $key); 36 sodium_crypto_stream($len, substr($nonce, 1), $key);
|
/PHP-8.0/ext/standard/ |
H A D | url.h | 35 PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of decoded string */ 36 PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string … 37 PHPAPI zend_string *php_url_encode(char const *s, size_t len); 38 PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len); 39 PHPAPI char *php_replace_controlchars_ex(char *str, size_t len);
|
H A D | mail.c | 62 size_t len = 0; in php_mail_build_headers_check_field_value() local 67 while (len < value->len) { in php_mail_build_headers_check_field_value() 69 if (value->len - len >= 3 in php_mail_build_headers_check_field_value() 71 && (*(value->val+len+2) == ' ' || *(value->val+len+2) == '\t')) { in php_mail_build_headers_check_field_value() 72 len += 3; in php_mail_build_headers_check_field_value() 80 len++; in php_mail_build_headers_check_field_value() 88 size_t len = 0; in php_mail_build_headers_check_field_name() local 91 while (len < key->len) { in php_mail_build_headers_check_field_name() 92 if (*(key->val+len) < 33 || *(key->val+len) > 126 || *(key->val+len) == ':') { in php_mail_build_headers_check_field_name() 95 len++; in php_mail_build_headers_check_field_name() [all …]
|
/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_read_buffer.c | 28 return buffer->len? FALSE:TRUE; in mysqlnd_read_buffer_is_empty() 37 if (buffer->len >= count) { in mysqlnd_read_buffer_read() 40 buffer->len -= count; in mysqlnd_read_buffer_read() 50 return buffer->len; in mysqlnd_read_buffer_bytes_left() 81 ret->size = ret->len = count; in mysqlnd_create_read_buffer()
|
/PHP-8.0/ext/sockets/tests/ |
H A D | socket_sentto_recvfrom_ipv4_udp.phpt | 25 $len = strlen($msg); 26 $sent = socket_sendto($socket, $msg, $len, 0, $address, $port); 31 } else if ($sent != $len) { 34 $sent, $len)); 37 $wants = $len; 41 while ($recvd < $len) { 61 if ($recvd != $len) { 64 $recvd, $len));
|
H A D | socket_sentto_recvfrom_ipv6_udp.phpt | 29 $len = strlen($msg); 30 $sent = socket_sendto($socket, $msg, $len, 0, $address, $port); 35 } else if ($sent != $len) { 38 $sent, $len)); 41 $wants = $len; 45 while ($recvd < $len) { 65 if ($recvd != $len) { 68 $recvd, $len));
|
/PHP-8.0/ext/opcache/tests/jit/ |
H A D | bug81051.phpt | 33 public function get(int $len) : string{ 34 …return $len === 1 ? $this->buffer[$this->offset++] : substr($this->buffer, ($this->offset += $len)…
|
/PHP-8.0/ext/mysqli/tests/ |
H A D | mysqli_fetch_array_large.phpt | 24 $len = strlen($sql); 25 assert($len < $package_size); 35 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 41 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 47 printf("[%03d + 3] Wrong results - expecting '%s' got '%s', len = %d, [%d] %s\n", 48 … $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link)); 55 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link)); 61 …printf("[%03d + 5] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_… 67 …printf("[%03d + 6] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_… 73 printf("[%03d + 7] Wrong results - expecting '%s' got '%s', len = %d, [%d] %s\n", [all …]
|
/PHP-8.0/Zend/ |
H A D | zend_long.h | 63 # define ZEND_LTOA(i, s, len) _i64toa_s((i), (s), (len), 10) argument 71 # define ZEND_LTOA(i, s, len) \ argument 73 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \ 92 # define ZEND_LTOA(i, s, len) _ltoa_s((i), (s), (len), 10) argument 95 # define ZEND_LTOA(i, s, len) \ argument 97 int st = snprintf((s), (len), ZEND_LONG_FMT, (i)); \
|
H A D | zend_stream.c | 28 static ssize_t zend_stream_stdio_reader(void *handle, char *buf, size_t len) /* {{{ */ in zend_stream_stdio_reader() argument 30 return fread(buf, 1, len, (FILE*)handle); in zend_stream_stdio_reader() 98 static ssize_t zend_stream_read(zend_file_handle *file_handle, char *buf, size_t len) /* {{{ */ in zend_stream_read() argument 104 for (n = 0; n < len && (c = zend_stream_getc(file_handle)) != EOF && c != '\n'; ++n) { in zend_stream_read() 113 return file_handle->handle.stream.reader(file_handle->handle.stream.handle, buf, len); in zend_stream_read() 122 *len = file_handle->len; in zend_stream_fixup() 162 file_handle->len = size; in zend_stream_fixup() 182 file_handle->len = size; in zend_stream_fixup() 189 if (file_handle->len == 0) { in zend_stream_fixup() 194 memset(file_handle->buf + file_handle->len, 0, ZEND_MMAP_AHEAD); in zend_stream_fixup() [all …]
|
/PHP-8.0/ext/bcmath/libbcmath/src/ |
H A D | debug.c | 59 pv (name, num, len) in pv() argument 62 int len; 66 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
|
/PHP-8.0/ext/pcre/pcre2lib/ |
H A D | pcre2_string_utils.c | 157 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV() 160 for (; len > 0; len--) in PRIV() 186 PRIV(strncmp_c8)(PCRE2_SPTR str1, const char *str2, size_t len) in PRIV() 189 for (; len > 0; len--) in PRIV()
|
/PHP-8.0/tests/output/ |
H A D | ob_start_basic_006.phpt | 12 $len = strlen($string); 13 return "f[call:$i; len:$len] - $string\n"; 26 $len = strlen($string); 27 return "C::g[call:$i; len:$len] - $string\n"; 33 $len = strlen($string); 34 return "C::h[call:$i; len:$len; id:$this->id] - $string\n"; 115 C::h[call:1; len:37; id:originalID] - bool(true) 121 C::h[call:2; len:37; id:changedID] - bool(true)
|
/PHP-8.0/ext/pdo_firebird/ |
H A D | firebird_statement.c | 142 if (len != 1 && len != 2 && len != 4) { in firebird_stmt_execute() 148 i += len + 3; in firebird_stmt_execute() 256 emalloc((len) ? (len * sizeof(type)) : ((*(unsigned long*)lenvar) = sizeof(type)))) 270 int result = *len = 0; in firebird_fetch_blob() 305 if (*len) { in firebird_fetch_blob() 325 (*ptr)[*len++] = '\0'; in firebird_fetch_blob() 352 *len = 0; in firebird_stmt_get_col() 409 *len = var->sqllen; in firebird_stmt_get_col() 412 *len = sizeof(zend_long); in firebird_stmt_get_col() 459 *len = 80; in firebird_stmt_get_col() [all …]
|
/PHP-8.0/sapi/litespeed/ |
H A D | lsapilib.h | 171 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t len ); 316 static inline ssize_t LSAPI_ReadReqBody( char * pBuf, size_t len ) in LSAPI_ReadReqBody() argument 317 { return LSAPI_ReadReqBody_r( &g_req, pBuf, len ); } in LSAPI_ReadReqBody() 322 static inline int LSAPI_ReqBodyGetLine( char * pBuf, int len, int *getLF ) in LSAPI_ReqBodyGetLine() argument 323 { return LSAPI_ReqBodyGetLine_r( &g_req, pBuf, len, getLF ); } in LSAPI_ReqBodyGetLine() 330 static inline ssize_t LSAPI_Write( const char * pBuf, ssize_t len ) in LSAPI_Write() argument 331 { return LSAPI_Write_r( &g_req, pBuf, len ); } in LSAPI_Write() 338 static inline ssize_t LSAPI_Write_Stderr( const char * pBuf, ssize_t len ) in LSAPI_Write_Stderr() argument 339 { return LSAPI_Write_Stderr_r( &g_req, pBuf, len ); } in LSAPI_Write_Stderr() 344 static inline int LSAPI_AppendRespHeader( char * pBuf, int len ) in LSAPI_AppendRespHeader() argument [all …]
|
/PHP-8.0/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_string.c | 42 string->len = 0; in mbfl_string_init() 50 string->len = 0; in mbfl_string_init_set() 60 string->len = 0; in mbfl_string_clear()
|
H A D | mbfl_memory_device.c | 108 result->len = device->pos; in mbfl_memory_device_result() 115 result->len = 0; in mbfl_memory_device_result() 155 mbfl_memory_device_strncat(mbfl_memory_device *device, const char *psrc, size_t len) in mbfl_memory_device_strncat() argument 159 if (len > device->length - device->pos) { in mbfl_memory_device_strncat() 163 if (len > SIZE_MAX - MBFL_MEMORY_DEVICE_ALLOC_SIZE in mbfl_memory_device_strncat() 164 || device->length > SIZE_MAX - (len + MBFL_MEMORY_DEVICE_ALLOC_SIZE)) { in mbfl_memory_device_strncat() 169 newlen = device->length + len + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_strncat() 175 memcpy(w, psrc, len); in mbfl_memory_device_strncat() 176 device->pos += len; in mbfl_memory_device_strncat()
|
/PHP-8.0/ext/standard/tests/file/ |
H A D | fread_error.phpt | 11 $len = 0; 13 var_dump( fread($file_handle, $len) ); 18 $len = -10; 20 var_dump( fread($file_handle, $len) );
|
/PHP-8.0/ext/standard/tests/strings/ |
H A D | strncasecmp_variation3.phpt | 13 for($len = strlen($str1); $len >= 0; $len--) { 14 var_dump( strncasecmp($str1, $str2, $len) );
|
H A D | strncmp_variation3.phpt | 13 for($len = strlen($str1); $len >= 0; $len--) { 14 var_dump( strncmp($str1, $str2, $len) );
|
/PHP-8.0/sapi/cli/ |
H A D | php_cli.c | 327 size_t len; in sapi_cli_register_variables() local 336 len = strlen(php_self); in sapi_cli_register_variables() 337 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) { in sapi_cli_register_variables() 340 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) { in sapi_cli_register_variables() 344 len = strlen(script_filename); in sapi_cli_register_variables() 352 len = 0U; in sapi_cli_register_variables() 353 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in sapi_cli_register_variables() 985 size_t len, index = 0; in do_cli() local 994 len = strlen(input); in do_cli() 995 while (len > 0 && len-- && (input[len]=='\n' || input[len]=='\r')) { in do_cli() [all …]
|