com php-src: use portable strtol: Zend/zend_operators.c
| From: | Anatol Belski | Date: | Tue, 02 Sep 2014 13:56:15 +0000 |
| Subject: | com php-src: use portable strtol: Zend/zend_operators.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81369@lists.php.net to get a copy of this message | ||
Commit: d7700588a9c6b879837e7306df50bcb2130cea9a
Author: Anatol Belski <ab@php.net> Tue, 2 Sep 2014 15:54:51 +0200
Parents: fee39d0868e416d80b4cf3f3c206d3c43c02ef6a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d7700588a9c6b879837e7306df50bcb2130cea9a
Log:
use portable strtol
Changed paths:
M Zend/zend_operators.c
Diff:
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 5dcd0c6..617e6bd 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -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;