mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
26 lines
381 B
Plaintext
26 lines
381 B
Plaintext
|
--TEST--
|
||
|
intl_is_failure()
|
||
|
--SKIPIF--
|
||
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
/*
|
||
|
* Check determining failure error codes.
|
||
|
*/
|
||
|
|
||
|
|
||
|
function check( $err_code )
|
||
|
{
|
||
|
var_export( intl_is_failure( $err_code ) );
|
||
|
echo "\n";
|
||
|
}
|
||
|
|
||
|
check( U_ZERO_ERROR );
|
||
|
check( U_USING_FALLBACK_WARNING );
|
||
|
check( U_ILLEGAL_ARGUMENT_ERROR );
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
false
|
||
|
false
|
||
|
true
|