Created
June 2, 2011 05:05
-
-
Save andrewwatson/1003965 to your computer and use it in GitHub Desktop.
An idea for fixing OpenVBX index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_reporting(E_ALL ^ E_NOTICE); | |
ini_set('log_errors', true); | |
if (version_compare(PHP_VERSION, '5.2.4') >= 0) { | |
// running 5.2.4 or newer | |
ini_set('display_errors', 'stderr'); | |
} else { | |
ini_set('display_errors', false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to use 0 or false interchangably without a difference regardless of version. The bigger issue is which errors are caught.
Check the first ~10 lines here: https://github.com/caseysoftware/web2project/blob/master/base.php