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

error_reporting for templates not working #145

Closed
dattn opened this issue Dec 29, 2015 · 1 comment
Closed

error_reporting for templates not working #145

dattn opened this issue Dec 29, 2015 · 1 comment

Comments

@dattn
Copy link

dattn commented Dec 29, 2015

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.

uwetews added a commit that referenced this issue Dec 29, 2015
@uwetews
Copy link
Contributor

uwetews commented Dec 29, 2015

The fix is now in the master branch and will later be included in 3.1.30

@uwetews uwetews closed this as completed Dec 29, 2015
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
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

No branches or pull requests

2 participants