开发者

PHP not displaying errors on live environment, shows blank screen

开发者 https://www.devze.com 2023-02-22 11:21 出处:网络
I have 2 environments, local and live on local i am running: apache php 5.2.9 on live i\'m running: nginx (fpm)

I have 2 environments, local and live

on local i am running: apache php 5.2.9

on live i'm running: nginx (fpm) php 5.3.5

i have tried setting:

error_reporting(E_ALL);
ini_set('display_errors',1);

this allows all errors on both servers, but on my live server i'm not seeing some errors, for example:

require('test.php);  //missing single quote

gives me a blank screen,开发者_Go百科 but on my local it gives me a notice and fatal error(because of the the require)

if i try to require a file that doesn't exist i get fatal errors on both environments.

I have access to change the configs and error reporting and display_errors are beign set correctly.

Any ideas?


Those kid of errors are critical. And their debugging information is also critical and potentially vulnerable to attacks.

Some hosts keep display_startup_errors off due to this.

0

精彩评论

暂无评论...
验证码 换一张
取 消