Skip to content

Commit 99eef49

Browse files
committed
THRIFT-5929: Fix build failure on PHP 8.5 due to removed zend_exception_get_default
1 parent 9f1fb7a commit 99eef49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
runs-on: ubuntu-24.04
120120
strategy:
121121
matrix:
122-
php-version: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
122+
php-version: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
123123
fail-fast: false
124124
steps:
125125
- uses: actions/checkout@v6

lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ void throw_tprotocolexception(const char* what, long errorcode) {
435435
// Sets EG(exception), call this and then RETURN_NULL();
436436
static
437437
void throw_zend_exception_from_std_exception(const std::exception& ex) {
438-
zend_throw_exception(zend_exception_get_default(), const_cast<char*>(ex.what()), 0);
438+
zend_throw_exception(zend_ce_exception, const_cast<char*>(ex.what()), 0);
439439
}
440440

441441
static

0 commit comments

Comments
 (0)