Permalink
Browse files

@- Added implicit_flush INI directive (Zeev)

  • Loading branch information...
zsuraski committed Jan 13, 2000
1 parent f249312 commit 24156db2526e62a653e5769b1492366701e815d4
Showing with 10 additions and 0 deletions.
  1. +3 −0 main/main.c
  2. +1 −0 main/php_globals.h
  3. +6 −0 php.ini-dist
View
@@ -190,6 +190,7 @@ PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("allow_call_time_pass_reference", "1", PHP_INI_ALL, OnUpdateBool, allow_call_time_pass_reference, php_core_globals, core_globals)
PHP_INI_ENTRY("precision", "14", PHP_INI_ALL, OnSetPrecision)
STD_PHP_INI_BOOLEAN("output_buffering", "0", PHP_INI_PERDIR|PHP_INI_SYSTEM, OnUpdateBool, output_buffering, php_core_globals, core_globals)
+ STD_PHP_INI_BOOLEAN("implicit_flush", "0", PHP_INI_PERDIR|PHP_INI_SYSTEM, OnUpdateBool, implicit_flush, php_core_globals, core_globals)
PHP_INI_ENTRY_EX("highlight.comment", HL_COMMENT_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb)
PHP_INI_ENTRY_EX("highlight.default", HL_DEFAULT_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb)
@@ -728,6 +729,8 @@ int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC)
if (PG(output_buffering)) {
php_start_ob_buffering();
+ } else if (PG(implicit_flush)) {
+ php_start_implicit_flush();
}
if (SG(request_info).auth_user) {
View
@@ -53,6 +53,7 @@ struct _php_core_globals {
zend_bool allow_call_time_pass_reference;
zend_bool zend_set_utility_values;
zend_bool output_buffering;
+ zend_bool implicit_flush;
zend_bool safe_mode;
zend_bool sql_safe_mode;
View
@@ -56,6 +56,12 @@ output_buffering = Off ; Output buffering allows you to send header lines (inclu
; You can enable output buffering by in runtime by calling the output
; buffering functions, or enable output buffering for all files
; by setting this directive to On.
+implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself
+ ; automatically after every output block. This is equivalent to
+ ; calling the PHP function flush() after each and every call to print()
+ ; or echo() and each and every HTML block.
+ ; Turning this option on has serious performance implications, and
+ ; is generally recommended for debugging purposes only.
allow_call_time_pass_reference = On ; whether to enable the ability to force arguments to be
; passed by reference at function-call time. This method
; is deprecated, and is likely to be unsupported in future

0 comments on commit 24156db

Please sign in to comment.