blob: 614a7403331a05e656f70365a062e29169d3332f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
// FIXME Improve Endian check when endian const gets added
// Check if platform is Big or Little endian
if (pack('S', 0xABCD) !== pack('v', 0xABCD)) {
$endian = 'be';
} else {
$endian = 'le';
}
define('BUNDLE', __DIR__ . '/_files/resourcebundle_' . $endian);
function debug( $res ) {
if (is_null( $res )) {
$ret = "NULL\n";
}
else {
$ret = print_r( $res, true ). "\n";
}
return $ret . sprintf( "%5d: %s\n", intl_get_error_code(), intl_get_error_message() );
}
|