-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Some phing tasks require the Intl extension but the dependency is not declared #1840
Comments
Hello, not a bug, it's like that by design. This way people not using I kindly suggest to add Intl extension as a dev dependency ( $ composer require ext-intl:* --dev |
I guess that makes sense given phing's current structure. If tasks not everyone uses were separate/optional dependencies maybe they'd declare their own requirements, but that isn't the structure today. Thanks so much for the quick response. I'll do as you suggested in my own project. |
We can add it to the |
Thank you! |
Is it possible to add intl dependency if we are using docker image phing/phing:3.0.0 or even nightly? |
Good idea. Continuing in #1875. |
Describe the bug
See the following image.
Basically, some phing tasks seem to require that
intl
be enabled, but it is not declared incomposer.json
. So you can install phing without having the extension compiled in/installed/enabled, and then get runtime failures if you use built-in tasks that depend on it.I encountered this issue because we noticed we had
php-intl
installed on our servers though our application doesn't depend on it. So I disabled the extension on my development machine, and confirmed that our application still works and passes all the tests. But then when I went to do a build using phing, the build failed due to the missing dependency. So I cleared myvendor
directory and did a freshcomposer install
to see if phing would install withoutphp-intl
being enabled, the install succeeded, andphing
builds continued to fail unless I re-enablephp-intl
.Steps To Reproduce
intl
extension in PHP. Depending on your OS/PHP setup, your steps may vary. For me, I renamed/usr/local/etc/php/ext-20-intl.ini
toext-20-intl.ini.disabled
build.xml
that uses the<tstamp>
task, which requires the extensionExpected behavior
TstampTask requires Intl extension
Screenshots / terminal output
The text was updated successfully, but these errors were encountered: