-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[Polyfill] mbstring polyfill does not have its iconv dependency declared #52207
Comments
This is (was) on purpose, because there's also a polyfill for iconv. |
For box, you might want to require the iconv-polyfill. |
Yeah I mean it's not a problem in itself, I just wanted to make sure it was not an issue that just went under the radar for whatever reason. |
- `ext-mbstring` is required and to allow it to work as a PHAR the polyfill is added. - `symfony/polyfill-mbstring` require `iconv` (see symfony/symfony#52207).
- `ext-mbstring` is required and to allow it to work as a PHAR the polyfill is added. - `symfony/polyfill-mbstring` require `iconv` (see symfony/symfony#52207).
Symfony version(s) affected
All versions of symfony/polyfill-mbstring
Description
From the description of
Mbstring
:And indeed the class uses a few
ext-iconv
functions, for instance: https://github.com/symfony/polyfill-mbstring/blob/1.x/Mbstring.php#L116The package is quite old (~8yo) so I do not know if this was a conscious decision at that time, a lack of support from Composer or if this is actually wanted. But my understanding is that the package currently depends on
ext-iconv
but does not declare it. As a result you can end up with the following failure:How to reproduce
I did not try to reproduce it on its own as I think the issue is understandable enough. But I think currently this can be done by:
ubuntu-latest
imagesymfony/polyfill-mbstring
and using themb_substr()
functionI encountered this issue while debugging something entirely unrelated in https://github.com/box-project/box/actions/runs/6591562359/job/17910413036?pr=1089.
Possible Solution
Add
ext-iconv
to therequire
of thecomposer.json
Additional Context
No response
The text was updated successfully, but these errors were encountered: