/php-src/ext/dba/libflatfile/ |
H A D | flatfile.c | 105 char *buf = emalloc(buf_size); in flatfile_delete() 116 if (num >= buf_size) { in flatfile_delete() 139 if (num >= buf_size) { in flatfile_delete() 154 char *buf = emalloc(buf_size); in flatfile_findkey() 166 if (num >= buf_size) { in flatfile_findkey() 182 if (num >= buf_size) { in flatfile_findkey() 198 char *buf = emalloc(buf_size); in flatfile_firstkey() 206 if (num >= buf_size) { in flatfile_firstkey() 222 if (num >= buf_size) { in flatfile_firstkey() 248 if (num >= buf_size) { in flatfile_nextkey() [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_strtab.c | 78 strtab->buf_size *= 2; in ir_strtab_grow_buf() 79 } while (UNEXPECTED(strtab->buf_size - strtab->buf_top < len + 1)); in ir_strtab_grow_buf() 81 strtab->buf = ir_mem_realloc(strtab->buf, strtab->buf_size); in ir_strtab_grow_buf() 93 void ir_strtab_init(ir_strtab *strtab, uint32_t size, uint32_t buf_size) in ir_strtab_init() argument 104 if (buf_size) { in ir_strtab_init() 105 strtab->buf = ir_mem_malloc(buf_size); in ir_strtab_init() 106 strtab->buf_size = buf_size; in ir_strtab_init() 110 strtab->buf_size = 0; in ir_strtab_init() 159 if (UNEXPECTED(strtab->buf_size - strtab->buf_top < len + 1)) { in ir_strtab_lookup()
|
H A D | ir.h | 490 uint32_t buf_size; member 498 void ir_strtab_init(ir_strtab *strtab, uint32_t count, uint32_t buf_size);
|
/php-src/sapi/fpm/fpm/ |
H A D | zlog.c | 135 return buf_size - space_left; in zlog_truncate_buf() 146 len = vsnprintf(buf, buf_size, fmt, ap); in zlog_external() 149 if (len >= buf_size) { in zlog_external() 150 len = zlog_truncate_buf(buf, buf_size, 0); in zlog_external() 176 len = zlog_print_time(&tv, buf, buf_size); in zlog_buf_prefix() 199 size_t buf_size = MAX_BUF_LENGTH; in vzlog() local 205 zlog_external(flags, buf, buf_size, fmt, args); in vzlog() 215 if (len > buf_size - 1) { in vzlog() 219 if (len >= buf_size) { in vzlog() 226 len += snprintf(buf + len, buf_size - len, in vzlog() [all …]
|
/php-src/ext/standard/ |
H A D | quot_print.c | 57 size_t decoded_len, buf_size; in php_quot_print_decode() local 83 i = length, p1 = str; buf_size = length; in php_quot_print_decode() 87 buf_size -= 2; in php_quot_print_decode() 95 retval = zend_string_alloc(buf_size, 0); in php_quot_print_decode()
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | in.c | 58 const lxb_char_t *buf, size_t buf_size) in lexbor_in_node_make() argument 68 node->end = buf + buf_size; in lexbor_in_node_make()
|
H A D | in.h | 64 const lxb_char_t *buf, size_t buf_size);
|
/php-src/Zend/ |
H A D | zend_gc.c | 236 (GC_G(first_unused) != GC_G(buf_size)) 482 gc_globals->buf_size = GC_INVALID; in gc_globals_ctor_ex() 555 GC_G(buf_size) = GC_DEFAULT_BUF_SIZE; in gc_enable() 583 if (GC_G(buf_size) >= GC_MAX_BUF_SIZE) { in gc_grow_root_buffer() 592 if (GC_G(buf_size) < GC_BUF_GROW_STEP) { in gc_grow_root_buffer() 593 new_size = GC_G(buf_size) * 2; in gc_grow_root_buffer() 595 new_size = GC_G(buf_size) + GC_BUF_GROW_STEP; in gc_grow_root_buffer() 601 GC_G(buf_size) = new_size; in gc_grow_root_buffer() 618 if (new_threshold > GC_G(buf_size)) { in gc_adjust_threshold() 621 if (new_threshold <= GC_G(buf_size)) { in gc_adjust_threshold() [all …]
|
H A D | zend_gc.h | 38 uint32_t buf_size; member
|
H A D | zend_builtin_functions.c | 153 add_assoc_long_ex(return_value, "buffer_size", sizeof("buffer_size")-1, (long)status.buf_size); in ZEND_FUNCTION()
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 696 unsigned int buf_size; in MYSQLND_METHOD() local 699 buf_size = MYSQLND_G(net_read_buffer_size); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD() 700 net->data->m.set_client_option(net, MYSQLND_OPT_NET_READ_BUFFER_SIZE, (char *)&buf_size); in MYSQLND_METHOD() 702 buf_size = MYSQLND_G(net_read_timeout); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD() 703 net->data->m.set_client_option(net, MYSQL_OPT_READ_TIMEOUT, (char *)&buf_size); in MYSQLND_METHOD()
|
H A D | mysqlnd_protocol_frame_codec.c | 445 unsigned int buf_size; in MYSQLND_METHOD() local 448 buf_size = MYSQLND_G(net_cmd_buffer_size); /* this is long, cast to unsigned int*/ in MYSQLND_METHOD() 449 pfc->data->m.set_client_option(pfc, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, (char *) &buf_size); in MYSQLND_METHOD()
|
H A D | mysqlnd_wireprotocol.c | 289 zend_uchar * const buf, const size_t buf_size, in mysqlnd_read_packet_header_and_body() argument 294 DBG_INF_FMT("buf=%p size=%zu", buf, buf_size); in mysqlnd_read_packet_header_and_body() 301 if (buf_size < packet_header->size) { in mysqlnd_read_packet_header_and_body() 303 buf_size, packet_header->size, packet_header->size - buf_size); in mysqlnd_read_packet_header_and_body()
|
/php-src/ext/soap/ |
H A D | php_xml.c | 130 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) in soap_xmlParseMemory() argument 139 ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); in soap_xmlParseMemory()
|
H A D | php_http.c | 1462 int buf_size = 0; in get_http_body() local 1465 if (sscanf(headerbuf, "%x", &buf_size) > 0 ) { in get_http_body() 1466 if (buf_size > 0) { in get_http_body() 1469 if (http_buf_size + buf_size + 1 < 0) { in get_http_body() 1477 http_buf = zend_string_realloc(http_buf, http_buf_size + buf_size, 0); in get_http_body() 1479 http_buf = zend_string_alloc(buf_size, 0); in get_http_body() 1482 while (len_size < buf_size) { in get_http_body() 1483 … ssize_t len_read = php_stream_read(stream, http_buf->val + http_buf_size, buf_size - len_size); in get_http_body() 1513 if (buf_size == 0) { in get_http_body()
|
H A D | soap.c | 2175 int buf_size; in do_request() local 2182 xmlDocDumpMemory(request, (xmlChar**)&buf, &buf_size); in do_request() 2192 ZVAL_STRINGL(Z_CLIENT_LAST_REQUEST_P(this_ptr), buf, buf_size); in do_request() 2196 ZVAL_STRINGL(¶ms[0], buf, buf_size); in do_request()
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_driver.c | 480 size_t buf_size = sizeof(buf), read_len = 0; in php_firebird_set_error() local 485 …while ((buf_size > (read_len + 1)) && (tmp_len = fb_interpret(&buf[read_len], (buf_size - read_len… in php_firebird_set_error()
|
/php-src/ext/exif/ |
H A D | exif.c | 1374 static char *exif_get_tagname_key(int tag_num, char *buf, size_t buf_size, tag_table_type tag_table) in exif_get_tagname_key() argument 1380 snprintf(buf, buf_size, "UndefinedTag:0x%04X", tag_num); in exif_get_tagname_key()
|