XMLWriter is installed but Composer fails due to it being detected as missing. #10843
Replies: 2 comments 15 replies
-
I cannot repro this with PHP 8.1.5 on linux.
As far as I can tell, Composer's PlatformRepository class does not do any special treatment for XMLWriter, it is just added if it is in So the only thing I can imagine is that you run Composer with a different PHP version or different ini settings than when you run Check with |
Beta Was this translation helpful? Give feedback.
-
They're virtually identical
Seems like it's not an issue with the |
Beta Was this translation helpful? Give feedback.
-
Hi there,
After upgrading from PHP7.4 to PHP8.1 I'm getting this error when running composer:
I removed all traces of PHP7.4. And made sure that the CLI is running on PHP8.1. So there's no chance that composer is pulling the wrong version of PHP.
When I run the aforementioned
php --ini
I get the list of ini files loaded. Which includes the xmlwriter extension.Also,
php -m
lists the xmlwriter module as installedAnd it seems like
XMLWriter
is available in the command line.The entire situation feels like a bug to me. But I am not certain if I'm just missing something.
Beta Was this translation helpful? Give feedback.
All reactions