我在 php-fpm 下跑 php7.0 ,然后 phpinfo 关键字段如下:
```
Directive Local Value Master Value
error_log /app/common/runtime/php_errors.log /app/common/runtime/php_errors.log
error_prepend_string no value no value
error_reporting 32767 32767
```
然后我在 php 脚本中直接调用 error_log 来 log 一个字符串就能在 /app/common/runtime/php_errors.log 下面看到。但是我如果故意把 php 脚本写错,就不能看到 log 了,这是为啥呢?
```
Directive Local Value Master Value
error_log /app/common/runtime/php_errors.log /app/common/runtime/php_errors.log
error_prepend_string no value no value
error_reporting 32767 32767
```
然后我在 php 脚本中直接调用 error_log 来 log 一个字符串就能在 /app/common/runtime/php_errors.log 下面看到。但是我如果故意把 php 脚本写错,就不能看到 log 了,这是为啥呢?