如何防止Apache将双反斜杠写入错误日志文件?

时间:2017-07-12 19:46:09

标签: apache logging

Apache正在使用双斜杠将字符串写入错误日志,如下所示:

PHP Fatal error:  Uncaught Error:
Call to undefined method Selector\\Fieldset\\SelectionForm 
... thrown in module\\Selector\\src\\Selection\\SelectionDataMapper.php 
on line 26, referer: http://...c=start

有没有办法让Apache写单斜杠?

软件:

  • Windows 10版本1703
  • Apache 2.4.26(Win64)
  • PHP Version 7.1.6

我在VirtualHost指令中有这个:

ErrorLog "logs/portal-error.log"

0 个答案:

没有答案