Lines Matching refs:arg
807 PHPAPI zend_long _php_math_basetolong(zval *arg, int base) in _php_math_basetolong() argument
813 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetolong()
817 s = Z_STRVAL_P(arg); in _php_math_basetolong()
819 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetolong()
851 PHPAPI int _php_math_basetozval(zval *arg, int base, zval *ret) in _php_math_basetozval() argument
861 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetozval()
865 s = Z_STRVAL_P(arg); in _php_math_basetozval()
870 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetozval()
915 PHPAPI zend_string * _php_math_longtobase(zval *arg, int base) in _php_math_longtobase() argument
922 if (Z_TYPE_P(arg) != IS_LONG || base < 2 || base > 36) { in _php_math_longtobase()
926 value = Z_LVAL_P(arg); in _php_math_longtobase()
945 PHPAPI zend_string * _php_math_zvaltobase(zval *arg, int base) in _php_math_zvaltobase() argument
949 if ((Z_TYPE_P(arg) != IS_LONG && Z_TYPE_P(arg) != IS_DOUBLE) || base < 2 || base > 36) { in _php_math_zvaltobase()
953 if (Z_TYPE_P(arg) == IS_DOUBLE) { in _php_math_zvaltobase()
954 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
975 return _php_math_longtobase(arg, base); in _php_math_zvaltobase()
983 zval *arg; in PHP_FUNCTION() local
986 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
989 convert_to_string_ex(arg); in PHP_FUNCTION()
990 if (_php_math_basetozval(arg, 2, return_value) == FAILURE) { in PHP_FUNCTION()
1000 zval *arg; in PHP_FUNCTION() local
1003 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1006 convert_to_string_ex(arg); in PHP_FUNCTION()
1007 if (_php_math_basetozval(arg, 16, return_value) == FAILURE) { in PHP_FUNCTION()
1017 zval *arg; in PHP_FUNCTION() local
1020 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1023 convert_to_string_ex(arg); in PHP_FUNCTION()
1024 if (_php_math_basetozval(arg, 8, return_value) == FAILURE) { in PHP_FUNCTION()
1034 zval *arg; in PHP_FUNCTION() local
1038 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1041 convert_to_long_ex(arg); in PHP_FUNCTION()
1042 result = _php_math_longtobase(arg, 2); in PHP_FUNCTION()
1051 zval *arg; in PHP_FUNCTION() local
1055 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1058 convert_to_long_ex(arg); in PHP_FUNCTION()
1059 result = _php_math_longtobase(arg, 8); in PHP_FUNCTION()
1068 zval *arg; in PHP_FUNCTION() local
1072 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1075 convert_to_long_ex(arg); in PHP_FUNCTION()
1076 result = _php_math_longtobase(arg, 16); in PHP_FUNCTION()