-
Notifications
You must be signed in to change notification settings - Fork 21
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
TARC-360 SIFO ignores some Smarty errors in debug mode #84
base: master
Are you sure you want to change the base?
Conversation
In what situations would we want to override the given error_reporting level behavior? |
There're some places where we have smarty errors but they are ignored due to the conditional that checks the error_reporting level. I'm not sure if this is the best way to solve the problem but I think it makes sense to show errors when we're under debug mode (or maybe we can change it to dev mode). What do you think? |
Do you have any example or any way to reproduce the unwanted behavior? The idea is respect the original reporting level, so only silented errors should be ignored. |
For example:
I think that when the fetch method returns a null value and no error is shown is because those errors are being silented. However, what is really rare is that we sometimes see smarty errors but sometimes not. It seems that the error_reporting level is not the same in some cases... |
In theory, if we are receiving a zero error_reporting level, we either have disabled error reporting in the config, or are executing something with forcedly silented errors ( I think that if we have detected inconsistent behaviors regarding error reporting on templates on some points, maybe it's better to find the origin than forcing their logging. If I try to execute some of the examples now, I should be able to see that inconsistences? Any specific thing to do to reproduce them? |
Sorry @obokaman-com , I didn't see your last response. The thing I do to reproduce the inconsistencies was commenting the function that silent the error or add a |
Now when debug mode is enabled, all Smarty errors will be shown in the Debug analyzer and as a PHP warning.