[php-src] Issue #8323: Declaring __toString() stops class hoisting in CLI apps

From: Date: Fri, 08 Apr 2022 04:47:54 +0000
Subject: [php-src] Issue #8323: Declaring __toString() stops class hoisting in CLI apps
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240790@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8323 Comment Author: dansmill Thank you. I appreciate the link. The explanation in there cleared it up for me. I saw where __toString() implied the Stringable interface, I did not see where declaration of a particular function in a class could change the extended interface to one that restricts early binding. Now I know. > On Apr 7, 2022, at 10:36 PM, Alexandru Pătrănescu ***@***.***> wrote: > > > Some more details why this is happening can be found here: >https://www.npopov.com/2021/10/20/Early-binding-in-PHP.html > <https://www.npopov.com/2021/10/20/Early-binding-in-PHP.html> > — > Reply to this email directly, view it on GitHub > <https://github.com/php/php-src/issues/8323#issuecomment-1092433927>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AICKMCOCEOJCTGY6EMY275TVD6ZWJANCNFSM5S3JL4EQ>. > You are receiving this because you authored the thread.

« previous php.bugs (#240790) next »