diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-03 10:27:15 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-03 11:26:25 +0200 |
commit | fd911a712424dc9c33a6a8ec415f72a645a58790 (patch) | |
tree | 28225c69babf6321694f68fb9f3124dccbd3553a /ext/standard/php_math.h | |
parent | ef41eaa5c6b7305ad1760ecd43ae35aca6dce9c2 (diff) | |
download | php-git-fd911a712424dc9c33a6a8ec415f72a645a58790.tar.gz |
Expect string argument in hexdec, octdec, bindec
Instead of accepting zval and converting to string. Also rewrite the
functions to make it obvious that they cannot return false.
Diffstat (limited to 'ext/standard/php_math.h')
-rw-r--r-- | ext/standard/php_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h index 791a01c02d..fd25cfb7f2 100644 --- a/ext/standard/php_math.h +++ b/ext/standard/php_math.h @@ -25,7 +25,7 @@ PHPAPI zend_string *_php_math_number_format(double, int, char, char); PHPAPI zend_string *_php_math_number_format_ex(double, int, char *, size_t, char *, size_t); PHPAPI zend_string * _php_math_longtobase(zval *arg, int base); PHPAPI zend_long _php_math_basetolong(zval *arg, int base); -PHPAPI int _php_math_basetozval(zval *arg, int base, zval *ret); +PHPAPI void _php_math_basetozval(zend_string *str, int base, zval *ret); PHPAPI zend_string * _php_math_zvaltobase(zval *arg, int base); PHP_FUNCTION(sin); |