You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2026/04/13 21:03:00 UTC

[jira] [Resolved] (THRIFT-5929) Fix build failure on PHP 8.5 due to removed zend_exception_get_default

     [ https://issues.apache.org/jira/browse/THRIFT-5929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-5929.
--------------------------------
    Fix Version/s: 0.24.0
       Resolution: Fixed

> Fix build failure on PHP 8.5 due to removed zend_exception_get_default
> ----------------------------------------------------------------------
>
>                 Key: THRIFT-5929
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5929
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>            Reporter: Pavel Kvach
>            Assignee: Pavel Kvach
>            Priority: Major
>             Fix For: 0.24.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Building the Thrift PHP extension fails with PHP 8.5 due to the removal of the zend_exception_get_default() function. The error is:
> {code:java}
> php_thrift_protocol.cpp:438:24: error: ‘zend_exception_get_default’ was not declared in this scope{code}
> This function was removed in PHP 8.5 (see [php-src commit link|https://github.com/php/php-src/commit/b0aaa31702e8846d0067436bd23f4832954db476]), and the recommended replacement is to use the global zend_ce_exception instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)