summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-10-03 13:32:01 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-10-03 13:32:01 +0000
commit39b0eb9b2219f3e1c5291f922ead1bb61b41c22e (patch)
treebd2ce03c77ac9c342ed4dc6bc45e1f9297755ac3 /ext/standard/basic_functions.c
parent76a104feb89c79fd5082ea820e2aa646446b37d2 (diff)
downloadphp-git-39b0eb9b2219f3e1c5291f922ead1bb61b41c22e.tar.gz
Fixed broken code by Derick.
ob_implicit_flush() and ob_flush_all() are stopped working. var_dump() and hightlisht_string() outputs buffer contents wrongly with ob_implicit_flush(). Everyone should be happy now. It was only OG(implicit_flush) interpretation issue after all.
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index f52932c9d3..afe4eb9dfc 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -2077,6 +2077,7 @@ PHP_FUNCTION(highlight_string)
convert_to_string(expr);
if (i) {
+ php_output_set_status(0 TSRMLS_CC);
php_start_ob_buffer (NULL, 0, 1 TSRMLS_CC);
}
@@ -2093,6 +2094,7 @@ PHP_FUNCTION(highlight_string)
if (i) {
php_ob_get_buffer (return_value TSRMLS_CC);
php_end_ob_buffer (0, 0 TSRMLS_CC);
+ php_output_set_status(1 TSRMLS_CC);
} else {
RETURN_TRUE;
}