[GH-ISSUE #77] turning off error_reporting is not a good idea... #59

Closed
opened 2026-03-02 15:55:23 +03:00 by kerem · 1 comment
Owner

Originally created by @alecos71 on GitHub (Nov 11, 2018).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/77

Warnings or errors can help to discover bugs, if you turn off those we cannot help you to fix bugs...

if you want you can use this trick:

$report_errors = false; // false = Turns off Errors, true = Turns on Errors

if ($report_errors == true) {
  @ini_set('error_reporting', E_ALL);
  @ini_set('display_errors', 1);
} else {
  @ini_set('error_reporting', E_ALL);
  @ini_set('display_errors', 0);
}

This a safe mode to display errors... hope this helps...

Originally created by @alecos71 on GitHub (Nov 11, 2018). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/77 Warnings or errors can help to discover bugs, if you turn off those we cannot help you to fix bugs... if you want you can use this trick: `$report_errors = false; // false = Turns off Errors, true = Turns on Errors` ``` if ($report_errors == true) { @ini_set('error_reporting', E_ALL); @ini_set('display_errors', 1); } else { @ini_set('error_reporting', E_ALL); @ini_set('display_errors', 0); } ``` This a safe mode to display errors... hope this helps...
kerem 2026-03-02 15:55:23 +03:00
Author
Owner

@TigersWay commented on GitHub (Nov 12, 2018):

Warnings or errors can help to discover bugs, if you turn off those we cannot help you to fix bugs...

Which is fine while developing, but rather dangerous in production #40

<!-- gh-comment-id:437722613 --> @TigersWay commented on GitHub (Nov 12, 2018): > Warnings or errors can help to discover bugs, if you turn off those we cannot help you to fix bugs... Which is fine while developing, but rather dangerous in production #40
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#59
No description provided.