Re: [RFC] New core autoloading mec hanism with support for function autoloading
| From: | Rowan Tommins | Date: | Thu, 13 Apr 2023 08:11:25 +0000 |
| Subject: | Re: [RFC] New core autoloading mec hanism with support for function autoloading | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120017@lists.php.net to get a copy of this message | ||
On 12 April 2023 23:50:25 BST, Dan Ackroyd <Danack@basereality.com> wrote:
>On Wed, 12 Apr 2023 at 17:32, Claude Pache <claude.pache@gmail.com> wrote:
>>
>> The proposed modification of
function_exists() will break
>> existing code:
>
>Please can you submit a failing test to
>https://github.com/Girgias/php-src/tree/zend_autoloader that
>shows a
>BC break.
I see that George has added this test based on a previous example in this thread: https://github.com/php/php-src/blob/7aaae2efa080084035911065c346d5f8932b0d63/Zend/tests/autoloading/function/local_function_pinned-to_global.phpt
It currently enshrines the proposed change in behaviour, so if you want a test that passes on
existing versions and fails on the current branch, just delete the last two lines in the EXPECT
section.
Regards,
--
Rowan Tommins
[IMSoP]