Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change error_reporting(0) to ini_set('display_errors', 0); #1398

Merged
merged 5 commits into from
Jul 10, 2012
Merged

Change error_reporting(0) to ini_set('display_errors', 0); #1398

merged 5 commits into from
Jul 10, 2012

Conversation

gintsmurans
Copy link
Contributor

Changed error reporting regarding issue #1386

@@ -52,20 +52,23 @@
* By default development will show errors but testing and live will hide them.
*/

if (defined('ENVIRONMENT'))
// By default show all except notifications, deprecated and strict errors
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locally I want to see every single possible error, warning, notice, etc.

@gintsmurans
Copy link
Contributor Author

@philsturgeon Good call. Although I would like to E_ALL be logged on production too, I guess there is a possibility that, on some setups, it could possibly make php log files too large. What do you think?

@narfbg
Copy link
Contributor

narfbg commented Jun 12, 2012

Looks good to me. Add a changelog entry and unless Phil and/or Alex disagree I'll merge it.

@philsturgeon
Copy link
Contributor

Seems good.

@narfbg
Copy link
Contributor

narfbg commented Jun 13, 2012

Might also be a good idea to add this, prior to the exit() call:

header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);

@narfbg
Copy link
Contributor

narfbg commented Jun 15, 2012

Referencing issue #135.

narfbg added a commit that referenced this pull request Jul 10, 2012
Change error_reporting(0) to ini_set('display_errors', 0);
@narfbg narfbg merged commit 036b33b into bcit-ci:develop Jul 10, 2012
narfbg added a commit that referenced this pull request Jul 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants