Browse Source

- Lets use zend_atol() here too (sync with 5_3)

PHP-5.2.1RC1
Felipe Pena 16 years ago
parent
commit
1342ff0075
  1. 2
      ext/standard/basic_functions.c

2
ext/standard/basic_functions.c

@ -6231,7 +6231,7 @@ static void php_simple_ini_parser_cb(zval *arg1, zval *arg2, int callback_type,
}
if (!(Z_STRLEN_P(arg1) > 1 && Z_STRVAL_P(arg1)[0] == '0') && is_numeric_string(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1), NULL, NULL, 0) == IS_LONG) {
ulong key = (ulong) zend_atoi(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1));
ulong key = (ulong) zend_atol(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1));
if (zend_hash_index_find(Z_ARRVAL_P(arr), key, (void **) &find_hash) == FAILURE) {
ALLOC_ZVAL(hash);
INIT_PZVAL(hash);

Loading…
Cancel
Save