-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Build fails with "Call to undefined function get_debug_type()" #550
Comments
It is quite curious as this appears to break on the scoped Box code but I would except the CI to fail |
Figured it out: The phar.readonly setting was set to 'On' on the CI server. |
Nice to find it! Whilst it may explain why it went under the radar I still think the error needs fixing.
It's a bit hard to do as Box restart is there to avoid this (it makes it easier for the user) and there is no way to know that for the requirement checker in advance |
I confirm that this issue still exists with latest version 3.13 of Box (3.13.0@275b091) and for all projects. Trying to bypass with following command: i.e with phplint branch 7.4 of latest version 3.0.3 output
With PHP 7.4.22 on Ubuntu 18.04 |
I've also tried a workaround with PHP 8.0.9 on Ubuntu 18.04, with same command, but have another issue (see output) output```
Same project https://github.com/overtrue/phplint with current branch 8.0 specialized for PHP 8 |
@theofidry FYI, I cannot reproduced anymore the box compile issue (on PHP 7.4.22 and 8.0.9) |
It should be possible to fix it by whitelisting the polyfills the idiomatic way as shown by humbug/php-scoper#440 (comment) |
This commit resolves this issue around PHAR compilation: ``` PHP Fatal error: Uncaught Error: Call to undefined function _HumbugBox48cf944fc33a\Symfony\Component\Console\get_debug_type() ``` The solution used is using a similar approach to humbug/php-scoper#481 Resolves box-project#550
This commit resolves this issue around PHAR compilation: ``` PHP Fatal error: Uncaught Error: Call to undefined function _HumbugBox48cf944fc33a\Symfony\Component\Console\get_debug_type() ``` The solution used is using a similar approach to humbug/php-scoper#481 Resolves #550 Co-authored-by: Arun Philip <aphilip@datto.com>
Bug report
When trying to build with the latest 3.12.2 .phar Release, I get the error:
I've tried earlier releases back to 3.8.5 but all with the same error.
This only happens on our jenkins server, locally (a windows machine) works fine.
Unfortunately I can't try the global composer installation on jenkins since we get dependency conflicts.
box.json
Output
The text was updated successfully, but these errors were encountered: