Join Free
  • Inbox
    + Reply to Thread
    Results 1 to 1 of 1

    Thread: Exception Error

    1. #1

      Exception Error

      Okay guys, found this issue

      on line 562, you have

      Code:
          public static function throwException($msg, $exceptionClass = 'Exception')
          {
              throw new $exceptionClass($msg);
          }
      Now this function somehow doesn't run well for me. My php info is

      Code:
      PHP 5.3.6 (cli) (built: Sep 12 2011 18:02:42) 
      Copyright (c) 1997-2011 The PHP Group
      Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

      So php is alright. I created an exception class for mfpfs called mfpfsExceptions and hardcoded the prosperent api to

      Code:
          protected $_exceptionHandler = 'mfpfsExceptions';
      But, somehow it always throws up an error

      Code:
      Fatal error: Uncaught exception 'mfpfsExceptions' with message 'Couldn't resolve host 'api.pro...
      when prosperent is down. So I changed the function above to eval rather than simple text... so the new function is

      Code:
          public static function throwException($msg, $exceptionClass = 'Exception')
          {
      		eval('throw new '.$exceptionClass.'($msg);');
          }
      and now it works fine. I think the ealier method wasn't working well. Let me know if this could fook the system up!

      Thanks

      blackid

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts