Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9
-
None
-
Patch Available
Description
When an Exception is required to be thrown by the binary accelerated library, an Class Not Found error will occur:
PHP Fatal error: Class 'TProtocolException' not found in XXXX
Line 426 needs to change from
createObject("TProtocolException", ex, 2, zwhat, zerrorcode);
to
createObject("\\Thrift\\Exception
TProtocolException", ex, 2, zwhat, zerrorcode);
and line 1104 needs to change from
createObject("TApplicationException", ex);
to
createObject("\\Thrift\\Exception
TApplicationException", ex);
Basically, there is no accounting for the fact that the exception classes are now namespaced.