Skip to content

Commit

Permalink
Merge pull request #1307 from Jippi/hotfix/debug-in-cli-should-includ…
Browse files Browse the repository at this point in the history
…e-newline

debug() in CLI should include newline..
  • Loading branch information
markstory committed May 29, 2013
2 parents b111750 + d14f0ce commit aa9f221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/basics.php
Expand Up @@ -95,6 +95,7 @@ function debug($var, $showHtml = null, $showFrom = true) {
########## DEBUG ##########
%s
###########################
TEXT;
$template = $html;
if (php_sapi_name() === 'cli' || $showHtml === false) {
Expand Down Expand Up @@ -231,8 +232,8 @@ function pluginSplit($name, $dotAppend = false, $plugin = null) {

/**
* print_r() convenience function
*
* In terminals this will act the same as using print_r() directly, when not run on cli
*
* In terminals this will act the same as using print_r() directly, when not run on cli
* print_r() will wrap <PRE> tags around the output of given array. Similar to debug().
*
* @see debug()
Expand Down

0 comments on commit aa9f221

Please sign in to comment.