This is an automated email from the ASF dual-hosted git repository. jensg pushed a commit to branch 0.23.0 in repository https://gitbox.apache.org/repos/asf/thrift.git
commit 276ec883910cd936b4f9413bf607c808a7423185 Author: Pavel Kvach <[email protected]> AuthorDate: Fri Mar 20 00:41:26 2026 +0200 THRIFT-5929: Fix build failure on PHP 8.5 due to removed zend_exception_get_default --- .github/workflows/build.yml | 2 +- lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4de6fa3b..8cafe26a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -153,7 +153,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - php-version: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3] + php-version: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5] fail-fast: false steps: - uses: actions/checkout@v6 diff --git a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp index c016b070b..523fd2c9c 100644 --- a/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp +++ b/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp @@ -435,7 +435,7 @@ void throw_tprotocolexception(const char* what, long errorcode) { // Sets EG(exception), call this and then RETURN_NULL(); static void throw_zend_exception_from_std_exception(const std::exception& ex) { - zend_throw_exception(zend_exception_get_default(), const_cast<char*>(ex.what()), 0); + zend_throw_exception(zend_ce_exception, const_cast<char*>(ex.what()), 0); } static
