ported ext/intl, bugfixes to go

This commit is contained in:
Anatol Belski 2014-08-19 22:57:17 +02:00
parent 729bce4321
commit 063079b62e
36 changed files with 189 additions and 187 deletions

View file

@ -47,9 +47,9 @@ static const DateFormat::EStyle valid_styles[] = {
static bool valid_format(zval *z) {
if (Z_TYPE_P(z) == IS_INT) {
long lval = Z_IVAL_P(z);
php_int_t lval = Z_IVAL_P(z);
for (int i = 0; i < sizeof(valid_styles) / sizeof(*valid_styles); i++) {
if ((long)valid_styles[i] == lval) {
if ((php_int_t)valid_styles[i] == lval) {
return true;
}
}