Skip to content

Conversation

Naktibalda
Copy link
Member

Previously phar file only loaded code from file named codecept.phar.
This change allows to name the file in any way you like and it will still work.

The change in stub is really simple, it sets alias to codecept.phar, so codecept.phar is replaced with actual filename in require_once 'phar://codecept.phar/vendor/codeception/codeception/app.php'; line.

The concequence to build process is that both phar files must be built as codecept.phar and PHP does not support building 2 phar files with the same alias, so the build process consists of 3 steps now.

Fixes Codeception/Codeception#5795

@Naktibalda Naktibalda merged commit 7500c20 into master Dec 23, 2019
@Naktibalda Naktibalda deleted the improved-phar-loader branch December 23, 2019 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants