diff --git a/lib/Cake/basics.php b/lib/Cake/basics.php index 04c1a19c1..a5bf97003 100644 --- a/lib/Cake/basics.php +++ b/lib/Cake/basics.php @@ -245,7 +245,7 @@ if (!function_exists('pr')) { function pr($var) { if (Configure::read('debug') > 0) { $template = php_sapi_name() !== 'cli' ? '
%s' : "\n%s\n"; - echo sprintf($template, print_r($var, true)); + printf($template, print_r($var, true)); } }