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 6c5ae27..54bd1da 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -456,14 +456,14 @@ PHP_FUNCTION(var_export)
}
if (return_output) {
- php_start_ob_buffer (NULL, 0, 1 TSRMLS_CC);
+ php_output_start_default(TSRMLS_C);
}
php_var_export(&var, 1 TSRMLS_CC);
if (return_output) {
- php_ob_get_buffer (return_value TSRMLS_CC);
- php_end_ob_buffer (0, 0 TSRMLS_CC);
+ php_output_get_contents(return_value TSRMLS_CC);
+ php_output_discard(TSRMLS_C);
}
}
/* }}} */