Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Fix CI with nightly PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
bzick committed Jun 9, 2018
1 parent 8e664eb commit de2acee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ion/ion_callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ pion_cb * pion_cb_fetch_method_ce(zend_class_entry * ce, const char * method_nam
cb->fci->params = NULL;
cb->fci->no_separation = 1;

#ifdef HAS_FCC_INITIALIZED
cb->fcc->initialized = 1;
#endif
cb->fcc->function_handler = fptr;
cb->fcc->calling_scope = NULL;
cb->fcc->called_scope = ce;
Expand Down
6 changes: 5 additions & 1 deletion src/ion/ion_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,17 @@ typedef struct _ion_http_body_parser ion_http_body_parser;

#if PHP_API_VERSION == 20160303
# define IS_PHP71 1
# define HAS_FCC_INITIALIZED 1

# define ION_TYPE_CODE(arg_info) ((arg_info)->type_hint)
# define ION_TYPE_IS_SET(arg_info) ((arg_info)->type_hint != IS_UNDEF)
# define ION_TYPE_IS_CLASS(arg_info) ((arg_info)->class_name)
# define ION_TYPE_NAME(arg_info) ((arg_info)->class_name)
# define ION_TYPE_ALLOW_NULL(arg_info) ((arg_info)->allow_null)
#else
#elif PHP_API_VERSION == 20170718
# define IS_PHP72 1
# define HAS_FCC_INITIALIZED 1

# define ION_TYPE_CODE(arg_info) (ZEND_TYPE_CODE((arg_info)->type))
# define ION_TYPE_IS_SET(arg_info) ZEND_TYPE_IS_SET((arg_info)->type)
# define ION_TYPE_IS_CLASS(arg_info) ZEND_TYPE_IS_CLASS((arg_info)->type)
Expand Down

0 comments on commit de2acee

Please sign in to comment.