This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Zend\I18n] php.ini setting "intl.use_exceptions" on true #6312
Comments
@ThaDafinser I'd like to note that ZF2 does never change the environment. Changing |
I'd vouch for the try-catch block approach (if anyone minds making a PR). |
Ocramius
pushed a commit
that referenced
this issue
Jan 3, 2015
Since PHP 5.5.0, the configuration option 'intl.use_exceptions' is available. When set to true, IntlException's are thrown instead of just setting a error code, so no calls to intl_is_failure() are necessary. Without the try/catch, the Int, Float and DateTime I18n validators hard-fail in case 'intl.use_exceptions' is set to true. NOTE: catching Exception (super class of IntlException), as IntlException is not available prior to PHP 5.5.0. refs #6312
Handled in #6598 |
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
Since PHP 5.5.0, the configuration option 'intl.use_exceptions' is available. When set to true, IntlException's are thrown instead of just setting a error code, so no calls to intl_is_failure() are necessary. Without the try/catch, the Int, Float and DateTime I18n validators hard-fail in case 'intl.use_exceptions' is set to true. NOTE: catching Exception (super class of IntlException), as IntlException is not available prior to PHP 5.5.0. refs zendframework/zendframework#6312
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
gianarb
pushed a commit
to zendframework/zend-i18n
that referenced
this issue
May 15, 2015
…ptions' into develop Close zendframework/zendframework#6598 Close zendframework/zendframework#6312 Forward port zendframework/zendframework#6598 Forward port zendframework/zendframework#6312
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
intl.use_exceptions
astrue
following validator will fail hard with the exception from the intl component:Possible solutions:
intl_is_failure()
checkNote: This feature was introduced with PHP 5.5
http://www.php.net/manual/en/class.intlexception.php
The text was updated successfully, but these errors were encountered: