-
Notifications
You must be signed in to change notification settings - Fork 268
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
Remove --disable-all
configuration option in PHP compile process
#1132
Remove --disable-all
configuration option in PHP compile process
#1132
Conversation
|
@adamziel It seems the error with the wp-cli test is linked with the |
@mho22 good find! Let's keep it disabled, then. I don't think it's enabled right now and determining the rationale and consequences of enabling it might require an entire discussion. |
@adamziel Last test, Here are the differences when I run this from my local environment and from
The only difference from localhost is Unfortunately, the size increased from |
@mho22 interesting! Are there any other significant differences in Or perhaps enabling Another idea would be to build PHP with |
@adamziel Here are the main differences between the two PHP versions listed above [ I suppose what is taking that much size is the I added the P.S. : I removed |
@mho22 good investigation, that makes sense! I'd recommend only shipping An ultimate solution would be to dynamically load specific extensions and libraries – the XDebug explorations will enable just that. Eventually, these may even be automatically lazy-loaded. |
@adamziel What are your thoughts on introducing a new ARG |
Could we get rid of --disable-all entirely and disable finfo specifically? If yes, let's do that. If not, let's do what you proposed. |
@adamziel The only way i see in the actual configuration is to add a
and in the
This could be correct but it is weird to see only one I wanted to have your opinion on those two options and wait for your decision. Before implementing it. |
|
@adamziel Finally, the pull request is ready for review. I understand that this one may not be as ambitious as expected, but the next ones involving |
Thank you! The |
@adamziel I made a mistake in the previous commit. It didn't add Note: You may want to rerun the tests due to a timeout issue, which I don't believe is related to this pull request. |
This is fantastic @mho22, thank you for all your work here! |
What is this PR doing?
Based on #1127. This PR enables FileInfo and Posix extensions in PHP previously disabled by
--disable-all
.What problem is it solving?
It allows the use of
new finfo()
. Previously, the following error occurred :Testing Instructions
mkdir php-wasm-issue && cd php-wasm-issue
npm install @php-wasm/cli
touch test.php
:node node_modules/.bin/cli test.php