PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-mute-expected-errors.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-mute-expected-errors.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-mute-expected-errors.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 724 bytes
 

Contents

Class file image Download

Smarty::muteExpectedErrors()

mutes expected warnings and notices deliberately generated by Smarty

Description

string

muteExpectedErrors

muteExpectedErrors() registers a custom error handler using set\_error\_handler(). The error handler merely inspects $errno and $errfile to determine if the given error was produced deliberately and must be ignored, or should be passed on to the next error handler.

Smarty::unmuteExpectedErrors() removes the current error handler. Please note, that if you\'ve registered any custom error handlers after the muteExpectedErrors() call, the unmute will not remove Smarty\'s muting error handler, but the one registered last.