diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-11 22:55:00 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-11 22:55:00 +0000 |
commit | e077c6bc286d05a8c3639c07fac9cd556f96083b (patch) | |
tree | 75389f80ef864aa449437b82ddc1d58568ffcc60 /main/main.c | |
parent | 2aca8c67ea258bfb336d1d03a04c3e086e5199ba (diff) | |
download | php-git-e077c6bc286d05a8c3639c07fac9cd556f96083b.tar.gz |
Make it possible to enable chunked output buffering without providing
an output handling function
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c index 620ba9bc58..cf3e760108 100644 --- a/main/main.c +++ b/main/main.c @@ -227,7 +227,7 @@ PHP_INI_BEGIN() STD_PHP_INI_BOOLEAN("magic_quotes_gpc", "1", PHP_INI_ALL, OnUpdateBool, magic_quotes_gpc, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("magic_quotes_runtime", "0", PHP_INI_ALL, OnUpdateBool, magic_quotes_runtime, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("magic_quotes_sybase", "0", PHP_INI_ALL, OnUpdateBool, magic_quotes_sybase, php_core_globals, core_globals) - STD_PHP_INI_BOOLEAN("output_buffering", "0", PHP_INI_PERDIR|PHP_INI_SYSTEM,OnUpdateBool, output_buffering, php_core_globals, core_globals) + STD_PHP_INI_ENTRY("output_buffering", "0", PHP_INI_PERDIR|PHP_INI_SYSTEM,OnUpdateInt, output_buffering, php_core_globals, core_globals) STD_PHP_INI_ENTRY("output_handler", NULL, PHP_INI_PERDIR|PHP_INI_SYSTEM,OnUpdateString, output_handler, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("register_argc_argv", "1", PHP_INI_ALL, OnUpdateBool, register_argc_argv, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("register_globals", "1", PHP_INI_ALL, OnUpdateBool, register_globals, php_core_globals, core_globals) @@ -669,7 +669,11 @@ int php_request_startup(TSRMLS_D) Z_TYPE_P(output_handler) = IS_STRING; php_start_ob_buffer(output_handler, 0 TSRMLS_CC); } else if (PG(output_buffering)) { - php_start_ob_buffer(NULL, 0 TSRMLS_CC); + if (PG(output_buffering)>1) { + php_start_ob_buffer(NULL, PG(output_buffering) TSRMLS_CC); + } else { + php_start_ob_buffer(NULL, 0 TSRMLS_CC); + } } else if (PG(implicit_flush)) { php_start_implicit_flush(TSRMLS_C); } |