summaryrefslogtreecommitdiff
path: root/ext/standard/var.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/var.c')
-rw-r--r--ext/standard/var.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c
index 8f33817..de32106 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -453,14 +453,14 @@ PHP_FUNCTION(var_export)
}
if (return_output) {
- php_output_start_default(TSRMLS_C);
+ php_start_ob_buffer (NULL, 0, 1 TSRMLS_CC);
}
php_var_export(&var, 1 TSRMLS_CC);
if (return_output) {
- php_output_get_contents(return_value TSRMLS_CC);
- php_output_discard(TSRMLS_C);
+ php_ob_get_buffer (return_value TSRMLS_CC);
+ php_end_ob_buffer (0, 0 TSRMLS_CC);
}
}
/* }}} */