swoole-src icon indicating copy to clipboard operation
swoole-src copied to clipboard

Swoole build for PHP-8.4 ZEND_EXIT has been removed

Open petk opened this issue 1 year ago • 1 comments

Please answer these questions before submitting your issue.

  1. What did you do? If possible, provide a simple script for reproducing the error.
# PHP 8.4 phpize
phpize
./configure
make
  1. What did you expect to see?

Successful build.

  1. What did you see instead?
/swoole-src/ext-src/swoole_coroutine.cc:990:57: error: 'ZEND_EXIT' was not declared in this scope; did you mean 'ZEND_CAST'?
  990 |         ori_exit_handler = zend_get_user_opcode_handler(ZEND_EXIT);
      |                                                         ^~~~~~~~~
      |                                                         ZEND_CAST
  1. What version of Swoole are you using (show your php --ri swoole)?

master branch

  1. What is your machine environment used (show your uname -a & php -v & gcc -v) ?

Linux, GCC, PHP 8.4

This is related to the recent RFC being merged to PHP 8.4 (current php-src master branch) https://github.com/php/php-src/pull/13483

petk avatar Aug 18 '24 17:08 petk

I will fix it later.

NathanFreeman avatar Aug 21 '24 00:08 NathanFreeman

https://github.com/swoole/swoole-src/pull/5462

NathanFreeman avatar Aug 29 '24 01:08 NathanFreeman