Skip to content

Commit

Permalink
Remove inlining _phpc_res_close
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Mar 14, 2021
1 parent bc34496 commit 887b089
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions phpc.h
Expand Up @@ -945,16 +945,8 @@ typedef zend_resource * phpc_res_value_t;
zend_fetch_resource2(Z_RES_P(_pz_res), _res_type_name, _res_type_1, _res_type_2)
#define PHPC_RES_DELETE(_pz_res) \
zend_list_delete(Z_RES_P(_pz_res))
#if PHP_MAJOR_VERSION < 8
#define PHPC_RES_CLOSE(_pz_res) \
zend_list_close(Z_RES_P(_pz_res))
#else
inline int _phpc_res_close(zval *zres) {
zend_list_close(Z_RES_P(zres));
return SUCCESS;
}
#define PHPC_RES_CLOSE _phpc_res_close
#endif

/* resource to zval */
#define PHPC_RES_PZVAL(_res, _pzv) \
Expand Down

0 comments on commit 887b089

Please sign in to comment.