1--TEST--
2intl_get_error_message()
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7/*
8 * Check getting global error message.
9 */
10
11if( collator_get_locale(new Collator('en_US'), -1) !== false )
12    echo "failed\n";
13else
14    printf( "%s\n", intl_get_error_message() );
15
16?>
17--EXPECT--
18Error getting locale by type: U_ILLEGAL_ARGUMENT_ERROR
19