-
Notifications
You must be signed in to change notification settings - Fork 714
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
error_reporting for templates not working #145
Comments
uwetews
added a commit
that referenced
this issue
Dec 29, 2015
…etch() was called on template objects #145
The fix is now in the master branch and will later be included in 3.1.30 |
uwetews
added a commit
to smarty-php/smarty-phpunit
that referenced
this issue
Dec 30, 2015
dattn
pushed a commit
to IONlu/smarty
that referenced
this issue
Feb 27, 2016
…etch() was called on template objects smarty-php#145
wisskid
pushed a commit
that referenced
this issue
Apr 12, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've set error_reporting to:
$smarty->setErrorReporting(E_ALL & ~E_NOTICE);
But smarty triggers always E_NOTICE errors when a variable is not defined in templates.
This has worked for smarty 3.1.27 and does not work anymore for 3.1.29
The problem seems to be at the following line:
https://github.com/smarty-php/smarty/blob/v3.1.29/libs/sysplugins/smarty_internal_templatebase.php#L172
$this->_objType should be 2 to ignore errors in templates.
The text was updated successfully, but these errors were encountered: