Home
last modified time | relevance | path

Searched refs:buffer (Results 226 – 250 of 291) sorted by path

12345678910>>...12

/PHP-5.5/ext/zip/
H A Dphp_zip.c1369 char *buffer; in PHP_NAMED_FUNCTION() local
1386 buffer[n] = 0; in PHP_NAMED_FUNCTION()
1387 RETURN_STRINGL(buffer, n, 0); in PHP_NAMED_FUNCTION()
1389 efree(buffer); in PHP_NAMED_FUNCTION()
1827 char *buffer, *name; in ZIPARCHIVE_METHOD() local
2523 char *buffer; in php_zip_get_from() local
2561 buffer = safe_emalloc(len, 1, 2); in php_zip_get_from()
2562 n = zip_fread(zf, buffer, len); in php_zip_get_from()
2564 efree(buffer); in php_zip_get_from()
2569 buffer[n] = 0; in php_zip_get_from()
[all …]
/PHP-5.5/ext/zlib/
H A Dphp_zlib.h47 php_zlib_buffer buffer; member
H A Dzlib.c130 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex()
134 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex()
165 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex()
368 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds()
371 buffer.data = buffer.aptr; in php_zlib_inflate_rounds()
372 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds()
373 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds()
379 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds()
384 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds()
389 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds()
[all …]
/PHP-5.5/ext/zlib/tests/
H A Dgzinflate_error1.phpt30 echo "\n-- Testing with a buffer that is too small --\n";
63 -- Testing with a buffer that is too small --
H A Dgzuncompress_error1.phpt30 echo "\n-- Testing with a buffer that is too small --\n";
65 -- Testing with a buffer that is too small --
/PHP-5.5/main/
H A DSAPI.h238 int (*read_post)(char *buffer, uint count_bytes TSRMLS_DC);
H A Dmain.c681 char *buffer; in php_printf() local
687 ret = PHPWRITE(buffer, size); in php_printf()
688 efree(buffer); in php_printf()
721 efree(buffer); in php_verror()
722 buffer = replace; in php_verror()
868 efree(buffer); in php_verror()
948 char *buffer; in php_error_cb() local
1021 efree(buffer); in php_error_cb()
1171 efree(buffer); in php_error_cb()
1183 efree(buffer); in php_error_cb()
[all …]
H A Doutput.c389 ZVAL_STRINGL(p, OG(active)->buffer.data, OG(active)->buffer.used, 1); in php_output_get_contents()
887 handler->buffer.data = emalloc(handler->buffer.size); in php_output_handler_init()
900 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append()
905 handler->buffer.data = erealloc(handler->buffer.data, handler->buffer.size + grow_max); in php_output_handler_append()
908 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append()
943 handler->buffer.used?handler->buffer.data:"", in php_output_handler_op()
944 handler->buffer.used, in php_output_handler_op()
945 handler->buffer.size, in php_output_handler_op()
971 ZVAL_STRINGL(ob_data, handler->buffer.data, handler->buffer.used, 1); in php_output_handler_op()
1003 …php_output_context_feed(context, handler->buffer.data, handler->buffer.size, handler->buffer.used,… in php_output_handler_op()
[all …]
H A Dphp_output.h135 php_output_buffer buffer; member
H A Drfc1867.c212 char *buffer; member
241 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer()
242 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer()
245 self->buf_begin = self->buffer; in fill_buffer()
253 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer()
289 self->buffer = (char *) ecalloc(1, minsize + 1); in multipart_buffer_new()
296 self->buf_begin = self->buffer; in multipart_buffer_new()
1273 if (mbuff->buffer) efree(mbuff->buffer);
/PHP-5.5/main/streams/
H A Dcast.c63 static int stream_cookie_reader(void *cookie, char *buffer, int size) in stream_cookie_reader() argument
68 ret = php_stream_read((php_stream*)cookie, buffer, size); in stream_cookie_reader()
72 static int stream_cookie_writer(void *cookie, const char *buffer, int size) in stream_cookie_writer() argument
76 return php_stream_write((php_stream *)cookie, (char *)buffer, size); in stream_cookie_writer()
96 static ssize_t stream_cookie_reader(void *cookie, char *buffer, size_t size) in stream_cookie_reader() argument
101 ret = php_stream_read(((php_stream *)cookie), buffer, size); in stream_cookie_reader()
105 static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t size) in stream_cookie_writer() argument
109 return php_stream_write(((php_stream *)cookie), (char *)buffer, size); in stream_cookie_writer()
H A Dphp_stream_filter_api.h119 php_stream_bucket_brigade buffer; member
H A Dstreams.c252 char *buffer = NULL; in php_stream_wrapper_log_error() local
255 vspprintf(&buffer, 0, fmt, args); in php_stream_wrapper_log_error()
259 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", buffer); in php_stream_wrapper_log_error()
260 efree(buffer); in php_stream_wrapper_log_error()
274 zend_llist_init(&new_list, sizeof buffer, wrapper_error_dtor, 0); in php_stream_wrapper_log_error()
280 zend_llist_add_element(list, &buffer); in php_stream_wrapper_log_error()
/PHP-5.5/netware/
H A Dstart.c45 size_t nbytes, size_t *bytesRead, void *buffer ), in _NonAppStart()
/PHP-5.5/
H A Dphp.ini-development216 ; Turning on this setting and managing its maximum buffer size can yield some
226 ; On = Enabled and buffer is unlimited. (Use with caution)
228 ; Integer = Enables the buffer and sets its maximum size in bytes.
252 ; Valid values for this option are 'off', 'on', or a specific buffer size
1217 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1221 ; Size of a pre-allocated buffer used for reading data sent by the server in
1711 ; registered as output buffer to function
H A Dphp.ini-production216 ; Turning on this setting and managing its maximum buffer size can yield some
226 ; On = Enabled and buffer is unlimited. (Use with caution)
228 ; Integer = Enables the buffer and sets its maximum size in bytes.
252 ; Valid values for this option are 'off', 'on', or a specific buffer size
1217 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1221 ; Size of a pre-allocated buffer used for reading data sent by the server in
1711 ; registered as output buffer to function
/PHP-5.5/sapi/apache/
H A Dmod_php5.c36 static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC);
125 static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC) in sapi_apache_read_post() argument
144 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes); in sapi_apache_read_post()
/PHP-5.5/sapi/apache_hooks/
H A Dmod_php5.c35 static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC);
270 static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC) in sapi_apache_read_post() argument
289 read_bytes = get_client_block(r, buffer+total_read_bytes, count_bytes-total_read_bytes); in sapi_apache_read_post()
H A Dphp_apache.c1092 char *buffer; in PHP_FUNCTION() local
1097 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buffer, &buffer_len) == FAILURE) { in PHP_FUNCTION()
1102 ap_rwrite(buffer, buffer_len, (request_rec*)SG(server_context)); in PHP_FUNCTION()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c506 static int sapi_cgi_read_post(char *buffer, uint count_bytes TSRMLS_DC) in sapi_cgi_read_post() argument
513 tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
522 static int sapi_fcgi_read_post(char *buffer, uint count_bytes TSRMLS_DC) in sapi_fcgi_read_post() argument
530 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_fcgi_read_post()
/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c677 php_cli_server_client_send_through(client, buffer.c, buffer.len); in sapi_cli_server_send_headers()
1010 buffer->first = NULL; in php_cli_server_buffer_ctor()
1011 buffer->last = NULL; in php_cli_server_buffer_ctor()
1018 if (!buffer->last) { in php_cli_server_buffer_append()
1023 buffer->last = last; in php_cli_server_buffer_append()
1031 if (!buffer->last) { in php_cli_server_buffer_prepend()
1032 buffer->last = last; in php_cli_server_buffer_prepend()
1979 if (!buffer.c) { in php_cli_server_send_error_page()
1990 chunk = php_cli_server_chunk_heap_new(buffer.c, buffer.c, buffer.len); in php_cli_server_send_error_page()
2064 if (!buffer.c) { in php_cli_server_begin_send_static()
[all …]
/PHP-5.5/sapi/continuity/
H A Dcapi.c198 static int sapi_capi_read_post(char *buffer, uint count_bytes TSRMLS_DC) in sapi_capi_read_post() argument
211 total_read = httpFread(rc->t, buffer, max_read); in sapi_capi_read_post()
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_log.c103 char buffer[FPM_LOG_BUFFER+1]; in fpm_log_write() local
145 memset(buffer, '\0', sizeof(buffer)); in fpm_log_write()
146 b = buffer; in fpm_log_write()
468 if (!test && strlen(buffer) > 0) { in fpm_log_write()
469 buffer[len] = '\n'; in fpm_log_write()
470 write(fpm_log_fd, buffer, len + 1); in fpm_log_write()
H A Dfpm_main.c497 static int sapi_cgi_read_post(char *buffer, uint count_bytes TSRMLS_DC) in sapi_cgi_read_post() argument
522 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
524 tmp_read_bytes = read(request_body_fd, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
H A Dfpm_status.c53 char *buffer, *time_format, time_buffer[64]; in fpm_status_handle_request() local
359 spprintf(&buffer, 0, short_syntax, in fpm_status_handle_request()
377 PUTS(buffer); in fpm_status_handle_request()
378 efree(buffer); in fpm_status_handle_request()
440 spprintf(&buffer, 0, full_syntax, in fpm_status_handle_request()
458 PUTS(buffer); in fpm_status_handle_request()
459 efree(buffer); in fpm_status_handle_request()

Completed in 112 milliseconds

12345678910>>...12