Skip to content

Commit

Permalink
Merge pull request #216 from remicollet/issue-php8
Browse files Browse the repository at this point in the history
fix for PHP 8.0.0beta2
  • Loading branch information
bluca authored Aug 25, 2020
2 parents e0db82c + f0993f1 commit 43464c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zmq.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,9 @@ zend_bool php_zmq_connect_callback(zval *socket, zend_fcall_info *fci, zend_fcal
fci->params = params;
fci->param_count = 2;
fci->retval = &retval;
#if PHP_VERSION_ID < 80000
fci->no_separation = 1;
#endif

if (zend_call_function(fci, fci_cache) == FAILURE) {
if (!EG(exception)) {
Expand Down
2 changes: 2 additions & 0 deletions zmq_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ zend_bool s_invoke_device_cb (php_zmq_device_cb_t *cb, uint64_t current_ts)
cb->fci.param_count = 1;

/* Call the cb */
#if PHP_VERSION_ID < 80000
cb->fci.no_separation = 1;
#endif
cb->fci.retval = &fc_retval;

if (zend_call_function(&(cb->fci), &(cb->fci_cache)) == FAILURE) {
Expand Down

0 comments on commit 43464c4

Please sign in to comment.