/PHP-7.4/ext/zlib/tests/ |
H A D | inflate_get_read_len.phpt | 16 $buf = inflate_add($ctx, $compressed);
|
/PHP-7.4/ext/standard/ |
H A D | url_scanner_ex.h | 43 smart_str buf; member
|
H A D | user_filters.c | 426 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION() 464 bucket->buf = perealloc(bucket->buf, Z_STRLEN_P(pzdata), bucket->is_persistent); in php_stream_bucket_attach() 467 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach() 533 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
|
H A D | net.c | 180 char *buf = php_win32_error_to_msg(GetLastError()); in PHP_FUNCTION() local 181 zend_error(E_WARNING, "GetAdaptersAddresses failed: %s", buf); in PHP_FUNCTION() 182 php_win32_error_msg_free(buf); in PHP_FUNCTION()
|
H A D | dns.c | 127 char buf[HOST_NAME_MAX + 1]; in PHP_FUNCTION() local 133 if (gethostname(buf, sizeof(buf))) { in PHP_FUNCTION() 138 RETURN_STRING(buf); in PHP_FUNCTION() 1054 char buf[MAXHOSTNAMELEN]; in PHP_FUNCTION() local 1129 if ((i = dn_expand(answer.qb2, end, cp, buf, sizeof(buf)-1)) < 0) { in PHP_FUNCTION() 1134 add_next_index_string(mx_list, buf); in PHP_FUNCTION()
|
/PHP-7.4/ext/opcache/ |
H A D | shared_alloc_win32.c | 50 char *buf = php_win32_error_to_msg(err); in zend_win_error_message() local 54 ev_msgs[1] = buf; in zend_win_error_message() 68 php_win32_error_msg_free(buf); in zend_win_error_message()
|
/PHP-7.4/ext/openssl/ |
H A D | xp_ssl.c | 486 char buf[1024]; in php_openssl_matches_common_name() local 492 cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); in php_openssl_matches_common_name() 496 } else if ((size_t)cert_name_len != strlen(buf)) { in php_openssl_matches_common_name() 503 cert_name_len, buf, subject_name); in php_openssl_matches_common_name() 615 memcpy(buf, Z_STRVAL_P(val), Z_STRLEN_P(val)+1); in php_openssl_passwd_callback() 2022 return php_openssl_sockop_io( 1, stream, buf, count ); in php_openssl_sockop_read() 2028 return php_openssl_sockop_io( 0, stream, (char*)buf, count ); in php_openssl_sockop_write() 2192 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io() 2443 char buf; in php_openssl_sockop_set_option() local 2466 int n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); in php_openssl_sockop_set_option() [all …]
|
/PHP-7.4/main/streams/ |
H A D | php_stream_filter_api.h | 46 char *buf; member 68 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8…
|
H A D | glob_wrapper.c | 130 static ssize_t php_glob_stream_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_glob_stream_read() argument 133 php_stream_dirent *ent = (php_stream_dirent*)buf; in php_glob_stream_read()
|
/PHP-7.4/sapi/litespeed/ |
H A D | lscriu.c | 385 char buf[0x1000]; in LSCRIU_Restored_Error() local 386 vsnprintf(buf, sizeof(buf), format, ap); in LSCRIU_Restored_Error() 400 buf); in LSCRIU_Restored_Error()
|
/PHP-7.4/build/ |
H A D | ax_func_which_gethostbyname_r.m4 | 104 char buf@<:@1024@:>@; 107 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ 124 char buf@<:@1024@:>@; 127 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
|
/PHP-7.4/main/ |
H A D | rfc1867.c | 259 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer() local 261 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer() 609 static size_t multipart_buffer_read(multipart_buffer *self, char *buf, size_t bytes, int *end) in multipart_buffer_read() argument 636 memcpy(buf, self->buf_begin, len); 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() 657 char buf[FILLUNIT], *out=NULL; in multipart_buffer_read_body() local 660 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body() 662 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
|
/PHP-7.4/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 127 static ssize_t pgsql_lob_write(php_stream *stream, const char *buf, size_t count) in pgsql_lob_write() argument 130 return lo_write(self->conn, self->lfd, (char*)buf, count); in pgsql_lob_write() 133 static ssize_t pgsql_lob_read(php_stream *stream, char *buf, size_t count) in pgsql_lob_read() argument 136 return lo_read(self->conn, self->lfd, buf, count); in pgsql_lob_read() 701 char *buf; in PHP_METHOD() local 706 while ((buf = php_stream_get_line(stream, NULL, 0, &line_len)) != NULL) { in PHP_METHOD() 707 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD() 708 efree(buf); in PHP_METHOD() 714 efree(buf); in PHP_METHOD() 933 zend_string *buf = strpprintf(0, ZEND_ULONG_FMT, (zend_long) lfd); in PHP_METHOD() local [all …]
|
/PHP-7.4/ext/mysqli/ |
H A D | mysqli.c | 124 if (type == FETCH_RESULT && bbuf.buf[i].val) { in php_free_stmt_bind_buffer() 125 efree(bbuf.buf[i].val); in php_free_stmt_bind_buffer() 142 efree(bbuf.buf); in php_free_stmt_bind_buffer() 972 char buf[32]; in PHP_MINFO_FUNCTION() local 977 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_active_persistent)); in PHP_MINFO_FUNCTION() 978 php_info_print_table_row(2, "Active Persistent Links", buf); in PHP_MINFO_FUNCTION() 979 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_inactive_persistent)); in PHP_MINFO_FUNCTION() 980 php_info_print_table_row(2, "Inactive Persistent Links", buf); in PHP_MINFO_FUNCTION() 981 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, MyG(num_links)); in PHP_MINFO_FUNCTION() 982 php_info_print_table_row(2, "Active Links", buf); in PHP_MINFO_FUNCTION()
|
/PHP-7.4/ext/zip/ |
H A D | zip_stream.c | 48 static ssize_t php_zip_ops_read(php_stream *stream, char *buf, size_t count) in php_zip_ops_read() argument 54 n = zip_fread(self->zf, buf, count); in php_zip_ops_read() 83 static ssize_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count) in php_zip_ops_write() argument
|
/PHP-7.4/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 243 char buf[16]; in pdo_dblib_stmt_describe() local 246 len = snprintf(buf, sizeof(buf), "computed%d", S->computed_column_name_count); in pdo_dblib_stmt_describe() 247 col->name = zend_string_init(buf, len, 0); in pdo_dblib_stmt_describe()
|
/PHP-7.4/ext/pdo_firebird/ |
H A D | firebird_driver.c | 596 char buf[400]; in pdo_firebird_fetch_error_func() local 602 while ((sizeof(buf)>(i+2))&&(l = fb_interpret(&buf[i],(sizeof(buf)-i-2),&s))) { in pdo_firebird_fetch_error_func() 604 strcpy(&buf[i++], " "); in pdo_firebird_fetch_error_func() 606 add_next_index_string(info, buf); in pdo_firebird_fetch_error_func()
|
/PHP-7.4/ext/spl/ |
H A D | spl_dllist.c | 1130 smart_str buf = {0}; in SPL_METHOD() local 1143 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD() 1147 smart_str_appendc(&buf, ':'); in SPL_METHOD() 1150 php_var_serialize(&buf, ¤t->data, &var_hash); in SPL_METHOD() 1155 smart_str_0(&buf); in SPL_METHOD() 1160 if (buf.s) { in SPL_METHOD() 1161 RETURN_NEW_STR(buf.s); in SPL_METHOD() 1174 char *buf; in SPL_METHOD() local 1179 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &buf, &buf_len) == FAILURE) { in SPL_METHOD() 1193 s = p = (const unsigned char*)buf; in SPL_METHOD() [all …]
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gdtest.c | 16 static int freadWrapper (void *context, char *buf, int len); 399 freadWrapper (void *context, char *buf, int len) in freadWrapper() argument 401 int got = fread (buf, 1, len, (FILE *) context); in freadWrapper()
|
/PHP-7.4/Zend/ |
H A D | zend_ast.c | 762 zend_ast_zval *new = (zend_ast_zval*)buf; in zend_ast_tree_copy() 766 buf = (void*)((char*)buf + sizeof(zend_ast_zval)); in zend_ast_tree_copy() 772 buf = (void*)((char*)buf + sizeof(zend_ast_zval)); in zend_ast_tree_copy() 780 buf = (void*)((char*)buf + zend_ast_list_size(list->children)); in zend_ast_tree_copy() 783 new->child[i] = (zend_ast*)buf; in zend_ast_tree_copy() 784 buf = zend_ast_tree_copy(list->child[i], buf); in zend_ast_tree_copy() 791 zend_ast *new = (zend_ast*)buf; in zend_ast_tree_copy() 794 buf = (void*)((char*)buf + zend_ast_size(children)); in zend_ast_tree_copy() 797 new->child[i] = (zend_ast*)buf; in zend_ast_tree_copy() 798 buf = zend_ast_tree_copy(ast->child[i], buf); in zend_ast_tree_copy() [all …]
|
/PHP-7.4/ext/libxml/ |
H A D | libxml.c | 424 const char buf[] = "Content-Type:"; in php_libxml_input_buffer_create_filename() local 426 …nd_binary_strncasecmp(Z_STRVAL_P(header), Z_STRLEN_P(header), buf, sizeof(buf)-1, sizeof(buf)-1)) { in php_libxml_input_buffer_create_filename() 591 char *buf; in php_libxml_internal_error_handler() local 595 len = vspprintf(&buf, 0, *msg, ap); in php_libxml_internal_error_handler() 599 while (len_iter && buf[--len_iter] == '\n') { in php_libxml_internal_error_handler() 600 buf[len_iter] = '\0'; in php_libxml_internal_error_handler() 604 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler() 606 efree(buf); in php_libxml_internal_error_handler()
|
/PHP-7.4/ext/sockets/tests/ |
H A D | socket_send.phpt | 2 int socket_send ( resource $socket , string $buf , int $len , int $flags );
|
/PHP-7.4/ext/soap/ |
H A D | php_sdl.c | 1189 #define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type); argument 1190 …T_INT(ret,buf) ret = ((unsigned char)(*buf)[0])|((unsigned char)(*buf)[1]<<8)|((unsigned char)(… argument 1191 #define WSDL_CACHE_GET_1(ret,type,buf) ret = (type)(**buf); (*buf)++; argument 1192 #define WSDL_CACHE_GET_N(ret,n,buf) memcpy(ret,*buf,n); *buf += n; argument 1193 #define WSDL_CACHE_SKIP(n,buf) *buf += n; argument 1552 char *in, *buf; in get_sdl_from_cache() local 1572 efree(buf); in get_sdl_from_cache() 1580 efree(buf); in get_sdl_from_cache() 1588 efree(buf); in get_sdl_from_cache() 1787 efree(buf); in get_sdl_from_cache() [all …]
|
/PHP-7.4/ext/dom/ |
H A D | document.c | 1634 xmlBufferPtr buf; in PHP_FUNCTION() local 1658 buf = xmlBufferCreate(); in PHP_FUNCTION() 1659 if (!buf) { in PHP_FUNCTION() 1673 xmlBufferFree(buf); in PHP_FUNCTION() 1677 xmlBufferFree(buf); in PHP_FUNCTION() 2178 xmlBufferPtr buf; in PHP_FUNCTION() local 2204 buf = xmlBufferCreate(); in PHP_FUNCTION() 2205 if (!buf) { in PHP_FUNCTION() 2211 xmlBufferFree(buf); in PHP_FUNCTION() 2232 int size = xmlBufferLength(buf); in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/hash/ |
H A D | hash_md.c | 139 unsigned char buf[1024]; in PHP_NAMED_FUNCTION() local 156 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_NAMED_FUNCTION() 157 PHP_MD5Update(&context, buf, n); in PHP_NAMED_FUNCTION() 655 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, size_t len) in PHP_MD2Update() argument 657 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update()
|