mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
use portable strtol
This commit is contained in:
parent
fee39d0868
commit
d7700588a9
@ -405,7 +405,7 @@ ZEND_API void convert_to_long_base(zval *op, int base) /* {{{ */
|
||||
{
|
||||
zend_string *str = Z_STR_P(op);
|
||||
|
||||
ZVAL_LONG(op, strtol(str->val, NULL, base));
|
||||
ZVAL_LONG(op, ZEND_STRTOL(str->val, NULL, base));
|
||||
zend_string_release(str);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user