]> granicus.if.org Git - php/commitdiff
Capitalize first character of error message.
authorGeorge Peter Banyard <girgias@php.net>
Tue, 19 Nov 2019 21:56:48 +0000 (22:56 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Thu, 5 Dec 2019 13:22:53 +0000 (14:22 +0100)
ext/standard/array.c
ext/standard/tests/array/range_errors.phpt

index 618ff2a2d1ea108720737e9b397ed69b9275bc90..a96d3a47f657c03e7825cd1500d45c8a5b010427 100644 (file)
@@ -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;
        }
 }
index d2dbfd5d67886c3e7d4c3e12d0b1a1ea173b5937..51e9e50a55f93290a7a4e44f18308c755a5ffb22 100644 (file)
@@ -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