Lines Matching refs:arg
814 PHPAPI zend_long _php_math_basetolong(zval *arg, int base) in _php_math_basetolong() argument
820 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetolong()
824 s = Z_STRVAL_P(arg); in _php_math_basetolong()
826 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetolong()
858 PHPAPI int _php_math_basetozval(zval *arg, int base, zval *ret) in _php_math_basetozval() argument
868 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetozval()
872 s = Z_STRVAL_P(arg); in _php_math_basetozval()
877 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetozval()
922 PHPAPI zend_string * _php_math_longtobase(zval *arg, int base) in _php_math_longtobase() argument
929 if (Z_TYPE_P(arg) != IS_LONG || base < 2 || base > 36) { in _php_math_longtobase()
933 value = Z_LVAL_P(arg); in _php_math_longtobase()
952 PHPAPI zend_string * _php_math_zvaltobase(zval *arg, int base) in _php_math_zvaltobase() argument
956 if ((Z_TYPE_P(arg) != IS_LONG && Z_TYPE_P(arg) != IS_DOUBLE) || base < 2 || base > 36) { in _php_math_zvaltobase()
960 if (Z_TYPE_P(arg) == IS_DOUBLE) { in _php_math_zvaltobase()
961 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
982 return _php_math_longtobase(arg, base); in _php_math_zvaltobase()
990 zval *arg; in PHP_FUNCTION() local
992 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { in PHP_FUNCTION()
995 convert_to_string_ex(arg); in PHP_FUNCTION()
996 if (_php_math_basetozval(arg, 2, return_value) == FAILURE) { in PHP_FUNCTION()
1006 zval *arg; in PHP_FUNCTION() local
1008 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { in PHP_FUNCTION()
1011 convert_to_string_ex(arg); in PHP_FUNCTION()
1012 if (_php_math_basetozval(arg, 16, return_value) == FAILURE) { in PHP_FUNCTION()
1022 zval *arg; in PHP_FUNCTION() local
1024 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { in PHP_FUNCTION()
1027 convert_to_string_ex(arg); in PHP_FUNCTION()
1028 if (_php_math_basetozval(arg, 8, return_value) == FAILURE) { in PHP_FUNCTION()
1038 zval *arg; in PHP_FUNCTION() local
1041 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { in PHP_FUNCTION()
1044 convert_to_long_ex(arg); in PHP_FUNCTION()
1045 result = _php_math_longtobase(arg, 2); in PHP_FUNCTION()
1054 zval *arg; in PHP_FUNCTION() local
1057 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { in PHP_FUNCTION()
1060 convert_to_long_ex(arg); in PHP_FUNCTION()
1061 result = _php_math_longtobase(arg, 8); in PHP_FUNCTION()
1070 zval *arg; in PHP_FUNCTION() local
1073 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &arg) == FAILURE) { in PHP_FUNCTION()
1076 convert_to_long_ex(arg); in PHP_FUNCTION()
1077 result = _php_math_longtobase(arg, 16); in PHP_FUNCTION()