Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 13 of 13) sorted by relevance

/PHP-7.1/ext/dba/libflatfile/
H A Dflatfile.c110 char *buf = emalloc(buf_size); in flatfile_delete()
121 if (num >= buf_size) { in flatfile_delete()
144 if (num >= buf_size) { in flatfile_delete()
160 char *buf = emalloc(buf_size); in flatfile_findkey()
172 if (num >= buf_size) { in flatfile_findkey()
188 if (num >= buf_size) { in flatfile_findkey()
205 char *buf = emalloc(buf_size); in flatfile_firstkey()
213 if (num >= buf_size) { in flatfile_firstkey()
229 if (num >= buf_size) { in flatfile_firstkey()
256 if (num >= buf_size) { in flatfile_nextkey()
[all …]
/PHP-7.1/sapi/fpm/fpm/
H A Dzlog.c105 const size_t buf_size = MAX_LINE_LENGTH; in vzlog() local
113 len = vsnprintf(buf, buf_size, fmt, ap); in vzlog()
115 if (len >= buf_size) { in vzlog()
117 len = buf_size - 1; in vzlog()
121 memset(buf, '\0', buf_size); in vzlog()
142 len = zlog_print_time(&tv, buf, buf_size); in vzlog()
155 if (len > buf_size - 1) { in vzlog()
160 len += vsnprintf(buf + len, buf_size - len, fmt, args); in vzlog()
161 if (len >= buf_size) { in vzlog()
169 if (len >= buf_size) { in vzlog()
[all …]
H A Dfpm_php_trace.c47 static const int buf_size = 1024; in fpm_php_trace_dump() local
48 char buf[buf_size]; in fpm_php_trace_dump()
55 zlog_print_time(&tv, buf, buf_size); in fpm_php_trace_dump()
65 if (0 > fpm_trace_get_strz(buf, buf_size, path_translated)) { in fpm_php_trace_dump()
111 if (0 > fpm_trace_get_strz(buf, buf_size, function_name + offsetof(zend_string, val))) { in fpm_php_trace_dump()
157 if (0 > fpm_trace_get_strz(buf, buf_size, file_name + offsetof(zend_string, val))) { in fpm_php_trace_dump()
/PHP-7.1/ext/mbstring/oniguruma/
H A Dregerror.c196 UChar buf[], int buf_size, int *is_over) in to_ascii() argument
208 if (code > 0xffff && len + 10 <= buf_size) { in to_ascii()
215 else if (len + 6 <= buf_size) { in to_ascii()
229 if (len >= buf_size) break; in to_ascii()
235 len = MIN((end - s), buf_size); in to_ascii()
237 *is_over = ((buf_size < (end - s)) ? 1 : 0); in to_ascii()
/PHP-7.1/ext/standard/
H A Dquot_print.c61 size_t decoded_len, buf_size; in php_quot_print_decode() local
87 i = length, p1 = str; buf_size = length; in php_quot_print_decode()
91 buf_size -= 2; in php_quot_print_decode()
99 retval = zend_string_alloc(buf_size, 0); in php_quot_print_decode()
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_vio.c676 unsigned int buf_size; in MYSQLND_METHOD() local
679 buf_size = MYSQLND_G(net_read_buffer_size); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD()
680 net->data->m.set_client_option(net, MYSQLND_OPT_NET_READ_BUFFER_SIZE, (char *)&buf_size); in MYSQLND_METHOD()
682 buf_size = MYSQLND_G(net_read_timeout); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD()
683 net->data->m.set_client_option(net, MYSQL_OPT_READ_TIMEOUT, (char *)&buf_size); in MYSQLND_METHOD()
H A Dmysqlnd_net.c1098 unsigned int buf_size; in MYSQLND_METHOD() local
1101 buf_size = MYSQLND_G(net_cmd_buffer_size); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD()
1102 net->data->m.set_client_option(net, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, (char *) &buf_size); in MYSQLND_METHOD()
1104 buf_size = MYSQLND_G(net_read_buffer_size); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD()
1105 net->data->m.set_client_option(net, MYSQLND_OPT_NET_READ_BUFFER_SIZE, (char *)&buf_size); in MYSQLND_METHOD()
1107 buf_size = MYSQLND_G(net_read_timeout); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD()
1108 net->data->m.set_client_option(net, MYSQL_OPT_READ_TIMEOUT, (char *)&buf_size); in MYSQLND_METHOD()
H A Dmysqlnd_protocol_frame_codec.c419 unsigned int buf_size; in MYSQLND_METHOD() local
422 buf_size = MYSQLND_G(net_cmd_buffer_size); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD()
423 pfc->data->m.set_client_option(pfc, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, (char *) &buf_size); in MYSQLND_METHOD()
H A Dmysqlnd_wireprotocol.c290 zend_uchar * buf, size_t buf_size, const char * const packet_type_as_text, in mysqlnd_read_packet_header_and_body() argument
294 DBG_INF_FMT("buf=%p size=%u", buf, buf_size); in mysqlnd_read_packet_header_and_body()
302 if (buf_size < packet_header->size) { in mysqlnd_read_packet_header_and_body()
304 buf_size, packet_header->size, packet_header->size - buf_size); in mysqlnd_read_packet_header_and_body()
/PHP-7.1/ext/soap/
H A Dphp_xml.c134 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) in soap_xmlParseMemory() argument
143 ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); in soap_xmlParseMemory()
H A Dphp_http.c1412 int buf_size = 0; in get_http_body() local
1415 if (sscanf(headerbuf, "%x", &buf_size) > 0 ) { in get_http_body()
1416 if (buf_size > 0) { in get_http_body()
1419 if (http_buf_size + buf_size + 1 < 0) { in get_http_body()
1427 http_buf = zend_string_realloc(http_buf, http_buf_size + buf_size, 0); in get_http_body()
1429 http_buf = zend_string_alloc(buf_size, 0); in get_http_body()
1432 while (len_size < buf_size) { in get_http_body()
1433 int len_read = php_stream_read(stream, http_buf->val + http_buf_size, buf_size - len_size); in get_http_body()
1463 if (buf_size == 0) { in get_http_body()
H A Dsoap.c2533 int buf_size; local
2542 xmlDocDumpMemory(request, (xmlChar**)&buf, &buf_size);
2551 add_property_stringl(this_ptr, "__last_request", buf, buf_size);
2555 ZVAL_STRINGL(&params[0], buf, buf_size);
/PHP-7.1/ext/interbase/
H A Dibase_query.c433 static int _php_ibase_bind_array(zval *val, char *buf, zend_ulong buf_size, /* {{{ */ in _php_ibase_bind_array() argument
444 zend_ulong slice_size = buf_size / dim_len; in _php_ibase_bind_array()
478 memset(buf, 0, buf_size); in _php_ibase_bind_array()
633 strlcpy(buf, Z_STRVAL_P(val), buf_size); in _php_ibase_bind_array()

Completed in 67 milliseconds