title: PHP error log and newline chars
body: <p>What's the PHP config setting which allows or prevents newlines in debug output from being escaped?</p>
  
  <p>On two different installs (a dev laptop running MAMP/OSX, and a dev server running debian) I see different results in the error logs when debugging.</p>
  
  <pre><code>error_log(print_r(array(1,2,4),1));
  </code></pre>
  
  <p>On Debian this appears in /var/log/apache2/error.log as</p>
  
  <pre><code>[Thu Jul 30 11:32:34 2009] [error] [client 118.93.246.104] Array\n(\n    [0] =&gt; 1\n    [1] =&gt; 2\n    [2] =&gt; 4\n)\n, referer: http://dev.example.org/
  </code></pre>
  
  <p>On OSX this appears in /Applications/MAMP/logs/php_error_log as</p>
  
  <pre><code>[30-Jul-2009 11:34:00] Array
  (
      [0] =&gt; 1
      [1] =&gt; 2
      [2] =&gt; 4
  )
  </code></pre>
  
  <p>I prefer the MAMP way for debugging (apart from relocating logfiles to the /Applications directory). </p>
  
  <p>Thanks!</p>