From f03d311f1ac1af5fc73bb97be58d276b6185a4c8 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Tue, 19 Nov 2019 22:56:48 +0100 Subject: [PATCH] Capitalize first character of error message. --- ext/standard/array.c | 2 +- ext/standard/tests/array/range_errors.phpt | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ext/standard/array.c b/ext/standard/array.c index 618ff2a2d1..a96d3a47f6 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2909,7 +2909,7 @@ long_str: } err: if (err) { - zend_value_error("step exceeds the specified range"); + zend_value_error("Step exceeds the specified range"); return; } } diff --git a/ext/standard/tests/array/range_errors.phpt b/ext/standard/tests/array/range_errors.phpt index d2dbfd5d67..51e9e50a55 100644 --- a/ext/standard/tests/array/range_errors.phpt +++ b/ext/standard/tests/array/range_errors.phpt @@ -87,33 +87,33 @@ foreach( $step_arr as $step ) { *** Testing error conditions *** -- Testing ( (low < high) && (step = 0) ) -- -step exceeds the specified range -step exceeds the specified range +Step exceeds the specified range +Step exceeds the specified range -- Testing ( (low > high) && (step = 0) ) -- -step exceeds the specified range -step exceeds the specified range +Step exceeds the specified range +Step exceeds the specified range -- Testing ( (low < high) && (high-low < step) ) -- -step exceeds the specified range +Step exceeds the specified range -- Testing ( (low > high) && (low-high < step) ) -- -step exceeds the specified range +Step exceeds the specified range -- Testing other conditions -- -step exceeds the specified range +Step exceeds the specified range range() expects parameter 3 to be int or float, string given -step exceeds the specified range +Step exceeds the specified range Notice: A non well formed numeric value encountered in %s on line %d -step exceeds the specified range +Step exceeds the specified range -- Testing Invalid steps -- range() expects parameter 3 to be int or float, string given -step exceeds the specified range -step exceeds the specified range +Step exceeds the specified range +Step exceeds the specified range range() expects parameter 3 to be int or float, string given range() expects parameter 3 to be int or float, string given -- 2.50.1