mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ported ext/intl, bugfixes to go
This commit is contained in:
parent
729bce4321
commit
063079b62e
36 changed files with 189 additions and 187 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue