com php-src: Capitalize first character of error message.: ext/standard/array.c ext/standard/tests/array/range_errors. phpt

From: Date: Thu, 05 Dec 2019 13:22:53 +0000
Subject: com php-src: Capitalize first character of error message.: ext/standard/array.c ext/standard/tests/array/range_errors. phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109399@lists.php.net to get a copy of this message
Commit: f03d311f1ac1af5fc73bb97be58d276b6185a4c8 Author: George Peter Banyard <girgias@php.net> Tue, 19 Nov 2019 22:56:48 +0100 Parents: 5fbd49f9abc058ea3040ce00b2225e4cc46ce650 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f03d311f1ac1af5fc73bb97be58d276b6185a4c8 Log: Capitalize first character of error message. Changed paths: M ext/standard/array.c M ext/standard/tests/array/range_errors.phpt Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 618ff2a2d1e..a96d3a47f65 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 d2dbfd5d678..51e9e50a55f 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

« previous php.cvs (#109399) next »