Lines Matching refs:arg

794 PHPAPI long _php_math_basetolong(zval *arg, int base)  in _php_math_basetolong()  argument
800 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetolong()
804 s = Z_STRVAL_P(arg); in _php_math_basetolong()
806 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetolong()
839 PHPAPI int _php_math_basetozval(zval *arg, int base, zval *ret) in _php_math_basetozval() argument
849 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetozval()
853 s = Z_STRVAL_P(arg); in _php_math_basetozval()
858 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetozval()
903 PHPAPI char * _php_math_longtobase(zval *arg, int base) in _php_math_longtobase() argument
910 if (Z_TYPE_P(arg) != IS_LONG || base < 2 || base > 36) { in _php_math_longtobase()
914 value = Z_LVAL_P(arg); in _php_math_longtobase()
933 PHPAPI char * _php_math_zvaltobase(zval *arg, int base TSRMLS_DC) in _php_math_zvaltobase() argument
937 if ((Z_TYPE_P(arg) != IS_LONG && Z_TYPE_P(arg) != IS_DOUBLE) || base < 2 || base > 36) { in _php_math_zvaltobase()
941 if (Z_TYPE_P(arg) == IS_DOUBLE) { in _php_math_zvaltobase()
942 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
963 return _php_math_longtobase(arg, base); in _php_math_zvaltobase()
971 zval **arg; in PHP_FUNCTION() local
973 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &arg) == FAILURE) { in PHP_FUNCTION()
976 convert_to_string_ex(arg); in PHP_FUNCTION()
977 if (_php_math_basetozval(*arg, 2, return_value) == FAILURE) { in PHP_FUNCTION()
987 zval **arg; in PHP_FUNCTION() local
989 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &arg) == FAILURE) { in PHP_FUNCTION()
992 convert_to_string_ex(arg); in PHP_FUNCTION()
993 if (_php_math_basetozval(*arg, 16, return_value) == FAILURE) { in PHP_FUNCTION()
1003 zval **arg; in PHP_FUNCTION() local
1005 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &arg) == FAILURE) { in PHP_FUNCTION()
1008 convert_to_string_ex(arg); in PHP_FUNCTION()
1009 if (_php_math_basetozval(*arg, 8, return_value) == FAILURE) { in PHP_FUNCTION()
1019 zval **arg; in PHP_FUNCTION() local
1022 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &arg) == FAILURE) { in PHP_FUNCTION()
1025 convert_to_long_ex(arg); in PHP_FUNCTION()
1026 result = _php_math_longtobase(*arg, 2); in PHP_FUNCTION()
1035 zval **arg; in PHP_FUNCTION() local
1038 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &arg) == FAILURE) { in PHP_FUNCTION()
1041 convert_to_long_ex(arg); in PHP_FUNCTION()
1042 result = _php_math_longtobase(*arg, 8); in PHP_FUNCTION()
1051 zval **arg; in PHP_FUNCTION() local
1054 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &arg) == FAILURE) { in PHP_FUNCTION()
1057 convert_to_long_ex(arg); in PHP_FUNCTION()
1058 result = _php_math_longtobase(*arg, 16); in PHP_FUNCTION()