Lines Matching refs:arg
805 PHPAPI zend_long _php_math_basetolong(zval *arg, int base) in _php_math_basetolong() argument
811 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetolong()
815 s = Z_STRVAL_P(arg); in _php_math_basetolong()
817 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetolong()
849 PHPAPI int _php_math_basetozval(zval *arg, int base, zval *ret) in _php_math_basetozval() argument
859 if (Z_TYPE_P(arg) != IS_STRING || base < 2 || base > 36) { in _php_math_basetozval()
863 s = Z_STRVAL_P(arg); in _php_math_basetozval()
868 for (i = Z_STRLEN_P(arg); i > 0; i--) { in _php_math_basetozval()
913 PHPAPI zend_string * _php_math_longtobase(zval *arg, int base) in _php_math_longtobase() argument
920 if (Z_TYPE_P(arg) != IS_LONG || base < 2 || base > 36) { in _php_math_longtobase()
924 value = Z_LVAL_P(arg); in _php_math_longtobase()
944 PHPAPI zend_string * _php_math_zvaltobase(zval *arg, int base) in _php_math_zvaltobase() argument
948 if ((Z_TYPE_P(arg) != IS_LONG && Z_TYPE_P(arg) != IS_DOUBLE) || base < 2 || base > 36) { in _php_math_zvaltobase()
952 if (Z_TYPE_P(arg) == IS_DOUBLE) { in _php_math_zvaltobase()
953 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
974 return _php_math_longtobase(arg, base); in _php_math_zvaltobase()
982 zval *arg; in PHP_FUNCTION() local
985 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
988 convert_to_string_ex(arg); in PHP_FUNCTION()
989 if (_php_math_basetozval(arg, 2, return_value) == FAILURE) { in PHP_FUNCTION()
999 zval *arg; in PHP_FUNCTION() local
1002 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1005 convert_to_string_ex(arg); in PHP_FUNCTION()
1006 if (_php_math_basetozval(arg, 16, return_value) == FAILURE) { in PHP_FUNCTION()
1016 zval *arg; in PHP_FUNCTION() local
1019 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1022 convert_to_string_ex(arg); in PHP_FUNCTION()
1023 if (_php_math_basetozval(arg, 8, return_value) == FAILURE) { in PHP_FUNCTION()
1033 zval *arg; in PHP_FUNCTION() local
1037 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1040 convert_to_long_ex(arg); in PHP_FUNCTION()
1041 result = _php_math_longtobase(arg, 2); in PHP_FUNCTION()
1050 zval *arg; in PHP_FUNCTION() local
1054 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1057 convert_to_long_ex(arg); in PHP_FUNCTION()
1058 result = _php_math_longtobase(arg, 8); in PHP_FUNCTION()
1067 zval *arg; in PHP_FUNCTION() local
1071 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
1074 convert_to_long_ex(arg); in PHP_FUNCTION()
1075 result = _php_math_longtobase(arg, 16); in PHP_FUNCTION()