From: George Peter Banyard Date: Tue, 19 Nov 2019 21:56:48 +0000 (+0100) Subject: Capitalize first character of error message. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f03d311f1ac1af5fc73bb97be58d276b6185a4c8;p=php Capitalize first character of error message. --- 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