这有点奇怪,我一直在研究 LAMP,突然意识到我放在“/etc/php5/cli”和“/etc/php/apache2”中的 php.ini 文件显示错误为 On 并且错误报告设置为 E_ALL .
据我所知,下面这个简单的代码应该会出错
<?
echo "hello";
header('location:http://google.com');
?>
我期望出现的错误应该是
hello Warning: Cannot modify header information - headers already sent by (output started at writecodeonline.com/php:1) on line 3
but it does not shows the error rather open google.com