/PHP-5.5/ext/zip/ |
H A D | php_zip.c | 1369 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 D | php_zlib.h | 47 php_zlib_buffer buffer; member
|
H A D | zlib.c | 130 …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 D | gzinflate_error1.phpt | 30 echo "\n-- Testing with a buffer that is too small --\n"; 63 -- Testing with a buffer that is too small --
|
H A D | gzuncompress_error1.phpt | 30 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 D | SAPI.h | 238 int (*read_post)(char *buffer, uint count_bytes TSRMLS_DC);
|
H A D | main.c | 681 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 D | output.c | 389 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 D | php_output.h | 135 php_output_buffer buffer; member
|
H A D | rfc1867.c | 212 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 D | cast.c | 63 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 D | php_stream_filter_api.h | 119 php_stream_bucket_brigade buffer; member
|
H A D | streams.c | 252 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 D | start.c | 45 size_t nbytes, size_t *bytesRead, void *buffer ), in _NonAppStart()
|
/PHP-5.5/ |
H A D | php.ini-development | 216 ; 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 D | php.ini-production | 216 ; 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 D | mod_php5.c | 36 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 D | mod_php5.c | 35 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 D | php_apache.c | 1092 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 D | cgi_main.c | 506 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 D | php_cli_server.c | 677 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 D | capi.c | 198 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 D | fpm_log.c | 103 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 D | fpm_main.c | 497 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 D | fpm_status.c | 53 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()
|