Skip to content

Commit 382b91a

Browse files
committed
Use $dividend and $divisor for argument names
1 parent 8e7ad85 commit 382b91a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,8 @@ ZEND_BEGIN_ARG_INFO(arginfo_fmod, 0)
11441144
ZEND_END_ARG_INFO()
11451145

11461146
ZEND_BEGIN_ARG_INFO(arginfo_fdiv, 0)
1147-
ZEND_ARG_INFO(0, x)
1148-
ZEND_ARG_INFO(0, y)
1147+
ZEND_ARG_INFO(0, dividend)
1148+
ZEND_ARG_INFO(0, divisor)
11491149
ZEND_END_ARG_INFO()
11501150

11511151
ZEND_BEGIN_ARG_INFO(arginfo_intdiv, 0)

ext/standard/math.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,21 +1296,22 @@ PHP_FUNCTION(fmod)
12961296
}
12971297
/* }}} */
12981298

1299-
/* {{{ proto float fdiv(float x, float y)
1300-
Perform floating-point division of x / y with IEEE-754 semantics for division by zero. */
1299+
/* {{{ proto float fdiv(float dividend, float divisor)
1300+
Perform floating-point division of dividend / divisor
1301+
with IEEE-754 semantics for division by zero. */
13011302
#ifdef __clang__
13021303
__attribute__((no_sanitize("float-divide-by-zero")))
13031304
#endif
13041305
PHP_FUNCTION(fdiv)
13051306
{
1306-
double num1, num2;
1307+
double dividend, divisor;
13071308

13081309
ZEND_PARSE_PARAMETERS_START(2, 2)
1309-
Z_PARAM_DOUBLE(num1)
1310-
Z_PARAM_DOUBLE(num2)
1310+
Z_PARAM_DOUBLE(dividend)
1311+
Z_PARAM_DOUBLE(divisor)
13111312
ZEND_PARSE_PARAMETERS_END();
13121313

1313-
RETURN_DOUBLE(num1 / num2);
1314+
RETURN_DOUBLE(dividend / divisor);
13141315
}
13151316
/* }}} */
13161317

0 commit comments

Comments
 (0)