Skip to content

Instantly share code, notes, and snippets.

@andrewwatson
Created June 2, 2011 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewwatson/1003965 to your computer and use it in GitHub Desktop.
Save andrewwatson/1003965 to your computer and use it in GitHub Desktop.
An idea for fixing OpenVBX index.php
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);
}
@caseysoftware
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment