Skip to content

Zend: Exception::__toString() no need to allocate the method name #19025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Jul 3, 2025

We can create the FCI/FCC pair ourself outside of the loop as the method getTraceAsString is final

We can create the FCI/FCC pair ourself outside of the loop as the method getTraceAsString is final
@Girgias Girgias force-pushed the exception-tostring-opt branch from fd89943 to d4238df Compare July 3, 2025 16:24
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
@nielsdos
Copy link
Member

nielsdos commented Jul 3, 2025

Right I remember having to fix that compile issue before. The best way that works on all compilers is just assigning the fields rather than using an initializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants