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-issuenpm install @php-wasm/clitouch test.php:node node_modules/.bin/cli test.php