Searched refs:buf_size (Results 1 - 12 of 12) sorted by relevance

/PHP_TRUNK/sapi/fpm/fpm/
H A Dzlog.c105 const size_t buf_size = MAX_LINE_LENGTH; local
113 len = vsnprintf(buf, buf_size, fmt, args);
115 if (len >= buf_size) {
116 memcpy(buf + buf_size - sizeof("..."), "...", sizeof("...") - 1);
117 len = buf_size - 1;
121 memset(buf, '\0', buf_size);
133 len += snprintf(buf, buf_size, "[%s] %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], function, line);
135 len += snprintf(buf, buf_size, "[%s] ", level_names[flags & ZLOG_LEVEL_MASK]);
142 len = zlog_print_time(&tv, buf, buf_size);
146 len += snprintf(buf + len, buf_size
[all...]
H A Dfpm_php_trace.c50 static const int buf_size = 1024;
51 char buf[buf_size];
57 zlog_print_time(&tv, buf, buf_size);
61 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) {
86 if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name))) {
104 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) {
H A Dfastcgi.c428 size_t buf_size = sizeof(buf); local
467 if (eff_name_len >= buf_size-1) {
472 buf_size = eff_name_len + 64;
473 tmp = (tmp == buf ? emalloc(buf_size): erealloc(tmp, buf_size));
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregerror.c196 UChar buf[], int buf_size, int *is_over)
208 if (code > 0xffff && len + 10 <= buf_size) {
215 else if (len + 6 <= buf_size) {
229 if (len >= buf_size) break;
235 len = MIN((end - s), buf_size);
237 *is_over = ((buf_size < (end - s)) ? 1 : 0);
195 to_ascii(OnigEncoding enc, UChar *s, UChar *end, UChar buf[], int buf_size, int *is_over) argument
/PHP_TRUNK/ext/dba/libflatfile/
H A Dflatfile.c109 size_t buf_size = FLATFILE_BLOCK_SIZE; local
110 char *buf = emalloc(buf_size);
121 if (num >= buf_size) {
122 buf_size = num + FLATFILE_BLOCK_SIZE;
123 buf = erealloc(buf, buf_size);
147 if (num >= buf_size) {
148 buf_size = num + FLATFILE_BLOCK_SIZE;
149 buf = erealloc(buf, buf_size);
165 size_t buf_size = FLATFILE_BLOCK_SIZE; local
166 char *buf = emalloc(buf_size);
215 size_t buf_size = FLATFILE_BLOCK_SIZE; local
263 size_t buf_size = FLATFILE_BLOCK_SIZE; local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dibase_query.c433 static int _php_ibase_bind_array(zval *val, char *buf, unsigned long buf_size, /* {{{ */ argument
444 unsigned long slice_size = buf_size / dim_len;
478 memset(buf, 0, buf_size);
629 strlcpy(buf, Z_STRVAL_P(val), buf_size);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_net.c1046 unsigned int buf_size; local
1049 buf_size = MYSQLND_G(net_cmd_buffer_size); /* this is long, cast to unsigned int*/
1050 net->data->m.set_client_option(net, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, (char *) &buf_size TSRMLS_CC);
1052 buf_size = MYSQLND_G(net_read_buffer_size); /* this is long, cast to unsigned int*/
1053 net->data->m.set_client_option(net, MYSQLND_OPT_NET_READ_BUFFER_SIZE, (char *)&buf_size TSRMLS_CC);
1055 buf_size = MYSQLND_G(net_read_timeout); /* this is long, cast to unsigned int*/
1056 net->data->m.set_client_option(net, MYSQL_OPT_READ_TIMEOUT, (char *)&buf_size TSRMLS_CC);
H A Dmysqlnd_wireprotocol.c35 #define PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_size, packet_type_as_text, packet_type) \
37 DBG_INF_FMT("buf=%p size=%u", (buf), (buf_size)); \
45 if ((buf_size) < (packet)->header.size) { \
47 (buf_size), (packet)->header.size, (packet)->header.size - (buf_size)); \
/PHP_TRUNK/ext/soap/
H A Dphp_xml.c131 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) argument
141 ctxt = xmlCreateMemoryParserCtxt(buf, buf_size);
H A Dphp_http.c327 int buf_size,
363 request_size = buf_size;
380 ZVAL_STRINGL(&params[0], buf, buf_size);
1390 int buf_size = 0; local
1393 if (sscanf(headerbuf, "%x", &buf_size) > 0 ) {
1394 if (buf_size > 0) {
1397 if (http_buf_size + buf_size + 1 < 0) {
1401 http_buf = erealloc(http_buf, http_buf_size + buf_size + 1);
1403 while (len_size < buf_size) {
1404 int len_read = php_stream_read(stream, http_buf + http_buf_size, buf_size
325 make_http_soap_request(zval *this_ptr, char *buf, int buf_size, char *location, char *soapaction, int soap_version, zval *return_value TSRMLS_DC) argument
[all...]
H A Dsoap.c2566 int buf_size; local
2574 xmlDocDumpMemory(request, (xmlChar**)&buf, &buf_size);
2582 add_property_stringl(this_ptr, "__last_request", buf, buf_size);
2586 ZVAL_STRINGL(&params[0], buf, buf_size);
3087 size_t buf_size, location_size, action_size; local
3093 &buf, &buf_size,
3103 if (make_http_soap_request(this_ptr, buf, buf_size, location, action, version, NULL TSRMLS_CC)) {
3106 } else if (make_http_soap_request(this_ptr, buf, buf_size, location, action, version,
/PHP_TRUNK/ext/standard/
H A Dquot_print.c61 size_t decoded_len, buf_size; local
87 i = length, p1 = str; buf_size = length;
91 buf_size -= 2;
99 retval = zend_string_alloc(buf_size, 0);

Completed in 27 milliseconds