diff options
author | Marcus Boerger <helly@php.net> | 2002-08-09 22:29:58 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-09 22:29:58 +0000 |
commit | 9c8ba935d6cce59d515087b5ce222f22619726f7 (patch) | |
tree | 3735e25221dd3866b0026a3761b4d2ca3af2dfff /main/main.c | |
parent | 2e29e53e00d39aa6f5ea1ff4102f792f6ba7ae60 (diff) | |
download | php-git-9c8ba935d6cce59d515087b5ce222f22619726f7.tar.gz |
Improved handling of output buffers (see news)\n#No trim for the string parameter...
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/main/main.c b/main/main.c index 90b39ae89a..685e787f13 100644 --- a/main/main.c +++ b/main/main.c @@ -813,13 +813,7 @@ int php_request_startup(TSRMLS_D) } if (PG(output_handler) && PG(output_handler)[0]) { - zval *output_handler; - - ALLOC_INIT_ZVAL(output_handler); - Z_STRLEN_P(output_handler) = strlen(PG(output_handler)); /* this can be optimized */ - Z_STRVAL_P(output_handler) = estrndup(PG(output_handler), Z_STRLEN_P(output_handler)); - Z_TYPE_P(output_handler) = IS_STRING; - php_start_ob_buffer(output_handler, 0, 1 TSRMLS_CC); + php_start_ob_buffer_named(PG(output_handler), 0, 1 TSRMLS_CC); } else if (PG(output_buffering)) { if (PG(output_buffering)>1) { |