cvs: /php4 main.c php.ini-dist php_globals.h
| From: | Zeev Suraski | Date: | Thu, 13 Jan 2000 20:40:03 +0000 |
| Subject: | cvs: /php4 main.c php.ini-dist php_globals.h | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9118@lists.php.net to get a copy of this message | ||
zeev Thu Jan 13 12:40:03 2000 EDT
Modified files:
/php4 main.c php.ini-dist php_globals.h
Log:
@- Added implicit_flush INI directive (Zeev)
Index: php4/main.c
diff -u php4/main.c:1.170 php4/main.c:1.171
--- php4/main.c:1.170 Fri Dec 31 17:31:27 1999
+++ php4/main.c Thu Jan 13 12:39:33 2000
@@ -19,7 +19,7 @@
*/
-/* $Id: main.c,v 1.170 2000/01/01 01:31:27 sas Exp $ */
+/* $Id: main.c,v 1.171 2000/01/13 20:39:33 zeev Exp $ */
#include <stdio.h>
@@ -190,6 +190,7 @@
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 @@
if (PG(output_buffering)) {
php_start_ob_buffering();
+ } else if (PG(implicit_flush)) {
+ php_start_implicit_flush();
}
if (SG(request_info).auth_user) {
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.17 php4/php.ini-dist:1.18
--- php4/php.ini-dist:1.17 Fri Dec 24 05:46:24 1999
+++ php4/php.ini-dist Thu Jan 13 12:39:33 2000
@@ -56,6 +56,12 @@
; 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
Index: php4/php_globals.h
diff -u php4/php_globals.h:1.31 php4/php_globals.h:1.32
--- php4/php_globals.h:1.31 Fri Dec 31 17:31:27 1999
+++ php4/php_globals.h Thu Jan 13 12:39:33 2000
@@ -53,6 +53,7 @@
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;