Skip to content

Commit 43464c4

Browse files
authored
Merge pull request #216 from remicollet/issue-php8
fix for PHP 8.0.0beta2
2 parents e0db82c + f0993f1 commit 43464c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

zmq.c

+2
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ zend_bool php_zmq_connect_callback(zval *socket, zend_fcall_info *fci, zend_fcal
621621
fci->params = params;
622622
fci->param_count = 2;
623623
fci->retval = &retval;
624+
#if PHP_VERSION_ID < 80000
624625
fci->no_separation = 1;
626+
#endif
625627

626628
if (zend_call_function(fci, fci_cache) == FAILURE) {
627629
if (!EG(exception)) {

zmq_device.c

+2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ zend_bool s_invoke_device_cb (php_zmq_device_cb_t *cb, uint64_t current_ts)
5353
cb->fci.param_count = 1;
5454

5555
/* Call the cb */
56+
#if PHP_VERSION_ID < 80000
5657
cb->fci.no_separation = 1;
58+
#endif
5759
cb->fci.retval = &fc_retval;
5860

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

0 commit comments

Comments
 (0)