Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • General
  • Webworker Lounge
  •  
  • Reverting to PHP Error Handling after using set_error_handler()?#

  • 9207
    1,884
    Hosting and Dev stuff: http://fireproofsocks.com/
    Articles and Reviews: http://tipsfor.us/

    Everett Reply #1, 2 years, 3 months ago

    Reply
    • Link to this post#1
    Is there any way to revert to PHP's native/normal error handling after setting up a custom error handler? (see http://www.php.net/manual/en/function.set-error-handler.php )

    set_error_handler("myErrorHandler");

    // Run stuff that might generate errors that I want to handle...

    set_error_handler("BACK_TO_NORMAL_PHPr");



  • 10487
    1,448
    Search | Download Latest Release | General Support
    About MODx | Documentation | Bugs/Wishlist | FORUM RULES

    Garry Nutting www.modx360 | My Amazon Wishlist | XBOX 360 Gamertag: webnerd

    garryn Reply #2, 2 years, 3 months ago

    Reply
    • Link to this post#2
    restore_error_handler()?

    See the comments though for some gotchas that may catch you out: http://www.php.net/manual/en/function.restore-error-handler.php


  • 9207
    1,884
    Hosting and Dev stuff: http://fireproofsocks.com/
    Articles and Reviews: http://tipsfor.us/

    Everett Reply #3, 2 years, 3 months ago

    Reply
    • Link to this post#3
    Thank you! And thank you Jason!





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Everettg_99, garryn

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Work at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy