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