1

我正在使用 PHP 5.4,当我这样做时:

<?php
function test(){}
function test(){}
?>

我在浏览器中收到 500 服务器错误,而不是 PHP 错误。这是一个错误吗?你们有同样的经历吗?

4

1 回答 1

3

The output of your server when an error occurs depends on your server setting. Because of security it's a good idea to not expose the real error message on a production server. Instead it's logged somewhere, usually you can find it somewhere around /var/log/apache2/error_log

于 2013-04-05T16:24:40.140 回答