View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
15774Feature requestsOtherpublic2020-01-24 16:28
ReporterDenisChenu Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary15774: Allow to set debug to error only (no notice, deprecated etc …)
Description

Set debug ==1 : you have notice and deprecated
debug == 2 : same and strictc and throw exception for notice and deprecated.

I think its make 1 unusable

Additional Information

index.php show another system
https://github.com/LimeSurvey/LimeSurvey/blob/a835a417467494805939a250450b93ce73b18816/index.php#L154-L174

but in LSYii_Controller.php
https://github.com/LimeSurvey/LimeSurvey/blob/a835a417467494805939a250450b93ce73b18816/application/core/LSYii_Controller.php#L129-L140

My proposition :

  • 0 : define('YII_DEBUG', false);@ini_set("display_errors", '0');error_reporting(0);
  • >0 : define('YII_DEBUG', false);@ini_set("display_errors", '1');error_reporting(E_ERROR | E_WARNING | E_PARSE);
  • >1: define('YII_DEBUG', false);@ini_set("display_errors", '1');error_reporting(E_ALL);
  • >=2define('YII_DEBUG', false);@ini_set("display_errors", '1');error_reporting(E_ALL | E_STRICT);`

And only at one place

TagsNo tags attached.
Bug heat2
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-01-24 16:28

developer   ~55468

@ollehar : point of view ?

I think a soluton to have only error are a needed way.

Issue History

Date Modified Username Field Change
2020-01-24 16:26 DenisChenu New Issue
2020-01-24 16:27 DenisChenu Additional Information Updated
2020-01-24 16:27 DenisChenu Additional Information Updated
2020-01-24 16:27 DenisChenu Additional Information Updated
2020-01-24 16:28 DenisChenu Note Added: 55468