Skip to content

Commit e703c7b

Browse files
pkvachJens-G
authored andcommitted
THRIFT-5929: Fix build failure on PHP 8.5 due to removed zend_exception_get_default
1 parent b5ca6d0 commit e703c7b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
runs-on: ubuntu-24.04
154154
strategy:
155155
matrix:
156-
php-version: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
156+
php-version: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
157157
fail-fast: false
158158
steps:
159159
- 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
@@ -491,7 +491,7 @@ void throw_tprotocolexception(const char* what, long errorcode) {
491491
// Sets EG(exception), call this and then RETURN_NULL();
492492
static
493493
void throw_zend_exception_from_std_exception(const std::exception& ex) {
494-
zend_throw_exception(zend_exception_get_default(), const_cast<char*>(ex.what()), 0);
494+
zend_throw_exception(zend_ce_exception, const_cast<char*>(ex.what()), 0);
495495
}
496496

497497
static

0 commit comments

Comments
 (0)