com php-src: Use request heap.: main/output.c
| From: | Dmitry Stogov | Date: | Wed, 21 Jun 2017 08:25:05 +0000 |
| Subject: | com php-src: Use request heap.: main/output.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98148@lists.php.net to get a copy of this message | ||
Commit: 687123ebf254415dd1a9c4ddd8d63ea4df0e2aa8
Author: Dmitry Stogov <dmitry@zend.com> Wed, 21 Jun 2017 11:25:05 +0300
Parents: c16f954ff199abe1cd83f97897c3c65d82e92961
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=687123ebf254415dd1a9c4ddd8d63ea4df0e2aa8
Log:
Use request heap.
Changed paths:
M main/output.c
Diff:
diff --git a/main/output.c b/main/output.c
index bc43a93..3eb6ddc 100644
--- a/main/output.c
+++ b/main/output.c
@@ -517,7 +517,7 @@ PHPAPI php_output_handler *php_output_handler_create_user(zval *output_handler,
PHPAPI php_output_handler *php_output_handler_create_internal(const char *name, size_t name_len,
php_output_handler_context_func_t output_handler, size_t chunk_size, int flags)
{
php_output_handler *handler;
- zend_string *str = zend_string_init(name, name_len, 1);
+ zend_string *str = zend_string_init(name, name_len, 0);
handler = php_output_handler_init(str, chunk_size, (flags & ~0xf) |
PHP_OUTPUT_HANDLER_INTERNAL);
handler->func.internal = output_handler;