Skip to content

Commit

Permalink
fix exception arginfo for PHP < 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gkralik committed Nov 23, 2017
1 parent b031a06 commit d68d7d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ typedef struct _sapnwrfc_function_exception_object {
zend_object zobj;
} sapnwrfc_functioncall_exception_object;

#if PHP_VERSION_ID >= 70200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(arginfo_Exception_getErrorInfo, IS_ARRAY, 1)
#else
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO(arginfo_Exception_getErrorInfo, IS_ARRAY, NULL, 1)
#endif
ZEND_END_ARG_INFO()

static zend_function_entry sapnwrfc_exception_class_functions[] = {
Expand Down

0 comments on commit d68d7d5

Please sign in to comment.