mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Making _php_math_longtobase() and _php_math_basetolong() callable from DLL and SO modules
This commit is contained in:
parent
e252d77d5f
commit
d313ad8bf5
@ -390,7 +390,7 @@ PHP_FUNCTION(rad2deg)
|
||||
/*
|
||||
* Convert a string representation of a base(2-36) number to a long.
|
||||
*/
|
||||
static long
|
||||
PHPAPI long
|
||||
_php_math_basetolong(zval *arg, int base) {
|
||||
long mult = 1, num = 0, digit;
|
||||
int i;
|
||||
@ -427,7 +427,7 @@ _php_math_basetolong(zval *arg, int base) {
|
||||
* Convert a long to a string containing a base(2-36) representation of
|
||||
* the number.
|
||||
*/
|
||||
static char *
|
||||
PHPAPI char *
|
||||
_php_math_longtobase(zval *arg, int base)
|
||||
{
|
||||
static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
|
Loading…
Reference in New Issue
Block a user