![]() |
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » fopen() » preg_match() » header() » getimagesize() » htmlspecialchars() » session_start() » ob_start() » strstr() » ob_flush() » preg_match_all() » strpos() » flush() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » urlencode() » ereg_replace() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: restore_error_handler (PHP 4 >= 4.0.1, PHP 5) restore_error_handler -- Restores the previous error handler functionDescriptionbool restore_error_handler ( void )Used after changing the error handler function using set_error_handler() , to revert to the previous error handler (which could be the built-in or a user defined function). Return ValuesThis function always returns TRUE Examples
Example 1. restore_error_handler() example Decide if unserialize() caused an error, then restore the original error handler. <?php function unserialize_handler($errno, $errstr) { echo "Invalid serialized value.\n"; } $serialized = 'foo'; set_error_handler('unserialize_handler'); $original = unserialize($serialized); restore_error_handler(); ?> The above example will output: Invalid serialized value. NotesNote: Calling restore_error_handler() from the error_handler function is ignored. Related Function(s) |