From 1b29e0cacd4670d2f92456302bc5a3199b408a06 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 7 Oct 2015 11:35:43 +0200 Subject: Switch zend_print_zval_r to use smart_str Instead of directly writing to stdout. This allows doing a print_r into a string, without using output buffering. The motivation for this is bug #67467: print_r() in return mode will still dump the string to stdout (causing a potential information leak) if a fatal error occurs. --- tests/output/ob_010.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/output/ob_010.phpt b/tests/output/ob_010.phpt index 24d650c50d..7e362cabe1 100644 --- a/tests/output/ob_010.phpt +++ b/tests/output/ob_010.phpt @@ -4,10 +4,10 @@ output buffering - fatalism --EXPECTF-- -Fatal error: print_r(): Cannot use output buffering in output buffering display handlers in %sob_010.php on line %d +foo -- cgit v1.2.1