Skip to content

Swoole build for PHP-8.4 ZEND_EXIT has been removed  #5451

@petk

Description

@petk

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)
php/php-src#13483

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions