Skip to content

[PHP] Fix runtime error with PHp8.5 alpha because zend_exception_get_defaul…#40337

Closed
HeenaBansal20 wants to merge 1 commit intogrpc:masterfrom
HeenaBansal20:master
Closed

[PHP] Fix runtime error with PHp8.5 alpha because zend_exception_get_defaul…#40337
HeenaBansal20 wants to merge 1 commit intogrpc:masterfrom
HeenaBansal20:master

Conversation

@HeenaBansal20
Copy link
Copy Markdown
Contributor

…t is remvoed

PHP 8.5 removed zend_exception_get_default().
See php updates
https://github.com/php/php-src/blob/747ecce51f2d55a424547d6ae852e2f7f3766e41/UPGRADING.INTERNALS#L51

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jul 26, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: HeenaBansal20 / name: Heena Bansal (4134a5a)

@HeenaBansal20 HeenaBansal20 changed the title Fix runtime error with PHp8.5 alpha because zend_exception_get_defaul… [PHP] Fix runtime error with PHp8.5 alpha because zend_exception_get_defaul… Jul 26, 2025
@HeenaBansal20
Copy link
Copy Markdown
Contributor Author

Just saw there is an issue opened already for it . This fixes this issue

@andypost
Copy link
Copy Markdown

Thank you, it fixes build, tested for Alpinelinux #40242
btw this change should be conditional depending on PHP API version

related commit php/php-src@a812a74

Comment thread src/php/ext/grpc/call.c
@sjayexec
Copy link
Copy Markdown

Hi @andypost

Is this PR good for merging? I see that the LABEL check failed. Can you please suggest the label that should be applied to this PR - release notes: yes or release notes: no? Just checking if we can fix this issue in the grpc extension as we are approaching PHP 8.5.0 GA release.

Thanks!

cc: @HeenaBansal20

@andypost
Copy link
Copy Markdown

Thank you, yes looks ready to go

@andypost
Copy link
Copy Markdown

I bet it's a good idea to mention PHP 8.5 support in release notes as only 2 releases left til GA https://wiki.php.net/todo/php85

sergiodj added a commit to sergiodj/os that referenced this pull request Nov 19, 2025
Adopt upstream patch from grpc/grpc#40337 to
fix FTBFS with PHP 8.5.

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
sergiodj added a commit to sergiodj/os that referenced this pull request Nov 20, 2025
Adopt upstream patch from grpc/grpc#40337 to
fix FTBFS with PHP 8.5.

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
@pyatnitsev pyatnitsev mentioned this pull request Nov 25, 2025
@pawbhard pawbhard self-assigned this Nov 25, 2025
@pawbhard pawbhard added release notes: yes Indicates if PR needs to be in release notes kokoro:run labels Jan 6, 2026
@copybara-service copybara-service Bot closed this in 6dda6ea Jan 6, 2026
pawbhard pushed a commit to pawbhard/grpc that referenced this pull request Jan 6, 2026
…defaul… (grpc#40337)

…t is remvoed

PHP 8.5 removed zend_exception_get_default().
See php updates
https://github.com/php/php-src/blob/747ecce51f2d55a424547d6ae852e2f7f3766e41/UPGRADING.INTERNALS#L51

Closes grpc#40337

COPYBARA_INTEGRATE_REVIEW=grpc#40337 from HeenaBansal20:master 4134a5a
PiperOrigin-RevId: 852624644
pawbhard added a commit that referenced this pull request Jan 7, 2026
…zend_exception_get_… (#41354)

### Back port of PR : #40337

PHP 8.5 removed zend_exception_get_default().
See php updates

https://github.com/php/php-src/blob/747ecce51f2d55a424547d6ae852e2f7f3766e41/UPGRADING.INTERNALS#L51

Closes #40337

COPYBARA_INTEGRATE_REVIEW=#40337 from
HeenaBansal20:master 4134a5a
PiperOrigin-RevId: 852624644




<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->

Co-authored-by: Heena Bansal <heena.bansal20@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/php release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants