diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 293e5089cf1..5c4f6468642 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -119,7 +119,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 c016b070b6a..523fd2c9c8c 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(ex.what()), 0); + zend_throw_exception(zend_ce_exception, const_cast(ex.what()), 0); } static