[MacPorts] #17839: Newlines showing as literal characters in PHP error logs
MacPorts
noreply at macports.org
Sun Jan 4 03:13:53 PST 2009
#17839: Newlines showing as literal characters in PHP error logs
---------------------------------------+------------------------------------
Reporter: simon@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: php5, error log, newlines | Port: php5
---------------------------------------+------------------------------------
Comment(by simon@…):
Replying to [comment:2 ryandesign@…]:
> Can you provide the php code you are using which produces this output in
the error log?
Happens with any {{{error_log}}} function calls. For example (just tested)
this code:
{{{
<?php
$my_array = array( 'blue', 'red', 'orange', 'apple' );
error_log( print_r( $my_array, true ) );
?>
}}}
Produces this in the Apache error log for that VirtualHost:
{{{
Sunday, 4 January 2009 11:08:50 Europe/London
[Sun Jan 04 11:09:20 2009] [error] [client 127.0.0.1] Array\n(\n [0] =>
blue\n [1] => red\n [2] => orange\n [3] => apple\n)\n
}}}
I'm viewing the log with Console, screengrab:
http://skitch.com/simonwheatley/byrb6/wp.test.site-error-log
--
Ticket URL: <http://trac.macports.org/ticket/17839#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list