@@ -227,7 +227,7 @@ PHP_INI_BEGIN()
227
227
STD_PHP_INI_BOOLEAN ("magic_quotes_gpc" , "1" , PHP_INI_ALL , OnUpdateBool , magic_quotes_gpc , php_core_globals , core_globals )
228
228
STD_PHP_INI_BOOLEAN ("magic_quotes_runtime" , "0" , PHP_INI_ALL , OnUpdateBool , magic_quotes_runtime , php_core_globals , core_globals )
229
229
STD_PHP_INI_BOOLEAN ("magic_quotes_sybase" , "0" , PHP_INI_ALL , OnUpdateBool , magic_quotes_sybase , php_core_globals , core_globals )
230
- STD_PHP_INI_BOOLEAN ("output_buffering" , "0" , PHP_INI_PERDIR |PHP_INI_SYSTEM ,OnUpdateBool , output_buffering , php_core_globals , core_globals )
230
+ STD_PHP_INI_ENTRY ("output_buffering" , "0" , PHP_INI_PERDIR |PHP_INI_SYSTEM ,OnUpdateInt , output_buffering , php_core_globals , core_globals )
231
231
STD_PHP_INI_ENTRY ("output_handler" , NULL , PHP_INI_PERDIR |PHP_INI_SYSTEM ,OnUpdateString , output_handler , php_core_globals , core_globals )
232
232
STD_PHP_INI_BOOLEAN ("register_argc_argv" , "1" , PHP_INI_ALL , OnUpdateBool , register_argc_argv , php_core_globals , core_globals )
233
233
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)
669
669
Z_TYPE_P (output_handler ) = IS_STRING ;
670
670
php_start_ob_buffer (output_handler , 0 TSRMLS_CC );
671
671
} else if (PG (output_buffering )) {
672
- php_start_ob_buffer (NULL , 0 TSRMLS_CC );
672
+ if (PG (output_buffering )> 1 ) {
673
+ php_start_ob_buffer (NULL , PG (output_buffering ) TSRMLS_CC );
674
+ } else {
675
+ php_start_ob_buffer (NULL , 0 TSRMLS_CC );
676
+ }
673
677
} else if (PG (implicit_flush )) {
674
678
php_start_implicit_flush (TSRMLS_C );
675
679
}
0 commit comments