|
1 <?php |
|
2 |
|
3 /* |
|
4 * This file is part of the Symfony package. |
|
5 * |
|
6 * (c) Fabien Potencier <fabien@symfony.com> |
|
7 * |
|
8 * For the full copyright and license information, please view the LICENSE |
|
9 * file that was distributed with this source code. |
|
10 */ |
|
11 |
|
12 use Symfony\Component\Locale\Stub\StubIntl; |
|
13 |
|
14 /** |
|
15 * Stub implementation for the intl_is_failure function of the intl extension |
|
16 * |
|
17 * @author Bernhard Schussek <bernhard.schussek@symfony.com> |
|
18 * @param integer $errorCode The error code returned by intl_get_error_code() |
|
19 * @return Boolean Whether the error code indicates an error |
|
20 * @see Symfony\Component\Locale\Stub\StubIntl::isFailure |
|
21 */ |
|
22 function intl_is_failure($errorCode) { |
|
23 return StubIntl::isFailure($errorCode); |
|
24 } |
|
25 |
|
26 /** |
|
27 * Stub implementation for the intl_get_error_code function of the intl extension |
|
28 * |
|
29 * @author Bernhard Schussek <bernhard.schussek@symfony.com> |
|
30 * @return Boolean The error code of the last intl function call or |
|
31 * StubIntl::U_ZERO_ERROR if no error occurred |
|
32 * @see Symfony\Component\Locale\Stub\StubIntl::getErrorCode |
|
33 */ |
|
34 function intl_get_error_code() { |
|
35 return StubIntl::getErrorCode(); |
|
36 } |
|
37 /** |
|
38 * Stub implementation for the intl_get_error_code function of the intl extension |
|
39 * |
|
40 * @author Bernhard Schussek <bernhard.schussek@symfony.com> |
|
41 * @return Boolean The error message of the last intl function call or |
|
42 * "U_ZERO_ERROR" if no error occurred |
|
43 * @see Symfony\Component\Locale\Stub\StubIntl::getErrorMessage |
|
44 */ |
|
45 function intl_get_error_message() { |
|
46 return StubIntl::getErrorMessage(); |
|
47 } |