felipe Sat, 19 Jun 2010 22:23:01 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=300607
Log: - Lets use zend_atol() here too (sync with 5_3) Changed paths: U php/php-src/branches/PHP_5_2/ext/standard/basic_functions.c Modified: php/php-src/branches/PHP_5_2/ext/standard/basic_functions.c =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/basic_functions.c 2010-06-19 20:47:24 UTC (rev 300606) +++ php/php-src/branches/PHP_5_2/ext/standard/basic_functions.c 2010-06-19 22:23:01 UTC (rev 300607) @@ -6231,7 +6231,7 @@ } 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php