PHP error log and newline chars

前端 未结 2 1172
天涯浪人
天涯浪人 2020-12-09 17:10

What\'s the PHP config setting which allows or prevents newlines in debug output from being escaped?

On two different installs (a dev laptop running MAMP/OSX, and a

2条回答
  •  难免孤独
    2020-12-09 18:11

    The problem is caused when the Apache process can't write into the error_log file, so the syslog writes into the file instead. The syslog messes up the line breaks.

    So just do:

    chmod 777 error.log
    

    This should solve your problem.

提交回复
热议问题