diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-15 11:27:29 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-17 14:52:46 +0100 |
| commit | d1764ca33018f1f2e4a05926c879c67ad4aa8da5 (patch) | |
| tree | 443cab099d2d5989a93a8102f599b51d36acc64e /ext/bcmath/libbcmath | |
| parent | 117b18d22d14fb6a597b3cd6d52e75cef2d088bb (diff) | |
| download | php-git-d1764ca33018f1f2e4a05926c879c67ad4aa8da5.tar.gz | |
Make error messages more consistent by fixing capitalization
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
Diffstat (limited to 'ext/bcmath/libbcmath')
| -rw-r--r-- | ext/bcmath/libbcmath/src/raise.c | 4 | ||||
| -rw-r--r-- | ext/bcmath/libbcmath/src/raisemod.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/bcmath/libbcmath/src/raise.c b/ext/bcmath/libbcmath/src/raise.c index e00a62e215..700a50f50c 100644 --- a/ext/bcmath/libbcmath/src/raise.c +++ b/ext/bcmath/libbcmath/src/raise.c @@ -54,10 +54,10 @@ bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) /* Check the exponent for scale digits and convert to a long. */ if (num2->n_scale != 0) - php_error_docref (NULL, E_WARNING, "non-zero scale in exponent"); + php_error_docref (NULL, E_WARNING, "Non-zero scale in exponent"); exponent = bc_num2long (num2); if (exponent == 0 && (num2->n_len > 1 || num2->n_value[0] != 0)) - php_error_docref (NULL, E_WARNING, "exponent too large"); + php_error_docref (NULL, E_WARNING, "Exponent too large"); /* Special case if exponent is a zero. */ if (exponent == 0) diff --git a/ext/bcmath/libbcmath/src/raisemod.c b/ext/bcmath/libbcmath/src/raisemod.c index 58f9532545..2865903940 100644 --- a/ext/bcmath/libbcmath/src/raisemod.c +++ b/ext/bcmath/libbcmath/src/raisemod.c @@ -79,21 +79,21 @@ bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale) /* Check the base for scale digits. */ if (power->n_scale != 0) { - php_error_docref (NULL, E_WARNING, "non-zero scale in base"); + php_error_docref (NULL, E_WARNING, "Non-zero scale in base"); _bc_truncate (&power); } /* Check the exponent for scale digits. */ if (exponent->n_scale != 0) { - php_error_docref (NULL, E_WARNING, "non-zero scale in exponent"); + php_error_docref (NULL, E_WARNING, "Non-zero scale in exponent"); _bc_truncate (&exponent); } /* Check the modulus for scale digits. */ if (modulus->n_scale != 0) { - php_error_docref (NULL, E_WARNING, "non-zero scale in modulus"); + php_error_docref (NULL, E_WARNING, "Non-zero scale in modulus"); _bc_truncate (&modulus); } |
