@@ -416,16 +416,16 @@ PHP_FUNCTION(bcmod)
416
416
/* {{{ Returns the value of an arbitrary precision number raised to the power of another reduced by a modulus */
417
417
PHP_FUNCTION (bcpowmod )
418
418
{
419
- zend_string * base , * exponent , * modulus ;
419
+ zend_string * base_str , * exponent_str , * modulus_str ;
420
420
zend_long scale_param ;
421
421
bool scale_param_is_null = 1 ;
422
422
bc_num bc_base , bc_expo , bc_modulus , result ;
423
423
int scale = BCG (bc_precision );
424
424
425
425
ZEND_PARSE_PARAMETERS_START (3 , 4 )
426
- Z_PARAM_STR (base )
427
- Z_PARAM_STR (exponent )
428
- Z_PARAM_STR (modulus )
426
+ Z_PARAM_STR (base_str )
427
+ Z_PARAM_STR (exponent_str )
428
+ Z_PARAM_STR (modulus_str )
429
429
Z_PARAM_OPTIONAL
430
430
Z_PARAM_LONG_OR_NULL (scale_param , scale_param_is_null )
431
431
ZEND_PARSE_PARAMETERS_END ();
@@ -444,17 +444,17 @@ PHP_FUNCTION(bcpowmod)
444
444
bc_init_num (& bc_modulus );
445
445
bc_init_num (& result );
446
446
447
- if (php_str2num (& bc_base , ZSTR_VAL (base )) == FAILURE ) {
447
+ if (php_str2num (& bc_base , ZSTR_VAL (base_str )) == FAILURE ) {
448
448
zend_argument_value_error (1 , "is not well-formed" );
449
449
goto cleanup ;
450
450
}
451
451
452
- if (php_str2num (& bc_expo , ZSTR_VAL (exponent )) == FAILURE ) {
452
+ if (php_str2num (& bc_expo , ZSTR_VAL (exponent_str )) == FAILURE ) {
453
453
zend_argument_value_error (2 , "is not well-formed" );
454
454
goto cleanup ;
455
455
}
456
456
457
- if (php_str2num (& bc_modulus , ZSTR_VAL (modulus )) == FAILURE ) {
457
+ if (php_str2num (& bc_modulus , ZSTR_VAL (modulus_str )) == FAILURE ) {
458
458
zend_argument_value_error (3 , "is not well-formed" );
459
459
goto cleanup ;
460
460
}
@@ -494,15 +494,15 @@ PHP_FUNCTION(bcpowmod)
494
494
/* {{{ Returns the value of an arbitrary precision number raised to the power of another */
495
495
PHP_FUNCTION (bcpow )
496
496
{
497
- zend_string * left , * right ;
497
+ zend_string * base_str , * exponent_str ;
498
498
zend_long scale_param ;
499
499
bool scale_param_is_null = 1 ;
500
500
bc_num first , bc_exponent , result ;
501
501
int scale = BCG (bc_precision );
502
502
503
503
ZEND_PARSE_PARAMETERS_START (2 , 3 )
504
- Z_PARAM_STR (left )
505
- Z_PARAM_STR (right )
504
+ Z_PARAM_STR (base_str )
505
+ Z_PARAM_STR (exponent_str )
506
506
Z_PARAM_OPTIONAL
507
507
Z_PARAM_LONG_OR_NULL (scale_param , scale_param_is_null )
508
508
ZEND_PARSE_PARAMETERS_END ();
@@ -520,12 +520,12 @@ PHP_FUNCTION(bcpow)
520
520
bc_init_num (& bc_exponent );
521
521
bc_init_num (& result );
522
522
523
- if (php_str2num (& first , ZSTR_VAL (left )) == FAILURE ) {
523
+ if (php_str2num (& first , ZSTR_VAL (base_str )) == FAILURE ) {
524
524
zend_argument_value_error (1 , "is not well-formed" );
525
525
goto cleanup ;
526
526
}
527
527
528
- if (php_str2num (& bc_exponent , ZSTR_VAL (right )) == FAILURE ) {
528
+ if (php_str2num (& bc_exponent , ZSTR_VAL (exponent_str )) == FAILURE ) {
529
529
zend_argument_value_error (2 , "is not well-formed" );
530
530
goto cleanup ;
531
531
}
0 commit comments