witheredOldMale Posted April 23, 2009 Share Posted April 23, 2009 After calling a method that throws an exception, I do zval *ex = EG(exception); if(ex != NULL) { zend_class_entry *exce = Z_OBJCE_P(ex); zval *zmsg = zend_call_method(&ex,exce,NULL,"getMessage",11,&zCtorRet,0,NULL,NULL); char *msg = Z_STRVAL_P(zmsg); } It fails with <b>Fatal error</b>: Couldn't find implementation for method Exception::getMessage What’s wrong here? Thanks OldMale. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.