Skip to content

Commit f03d311

Browse files
committed
Capitalize first character of error message.
1 parent 5fbd49f commit f03d311

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2909,7 +2909,7 @@ PHP_FUNCTION(range)
29092909
}
29102910
err:
29112911
if (err) {
2912-
zend_value_error("step exceeds the specified range");
2912+
zend_value_error("Step exceeds the specified range");
29132913
return;
29142914
}
29152915
}

ext/standard/tests/array/range_errors.phpt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,33 +87,33 @@ foreach( $step_arr as $step ) {
8787
*** Testing error conditions ***
8888

8989
-- Testing ( (low < high) && (step = 0) ) --
90-
step exceeds the specified range
91-
step exceeds the specified range
90+
Step exceeds the specified range
91+
Step exceeds the specified range
9292

9393

9494
-- Testing ( (low > high) && (step = 0) ) --
95-
step exceeds the specified range
96-
step exceeds the specified range
95+
Step exceeds the specified range
96+
Step exceeds the specified range
9797

9898

9999
-- Testing ( (low < high) && (high-low < step) ) --
100-
step exceeds the specified range
100+
Step exceeds the specified range
101101

102102

103103
-- Testing ( (low > high) && (low-high < step) ) --
104-
step exceeds the specified range
104+
Step exceeds the specified range
105105

106106
-- Testing other conditions --
107-
step exceeds the specified range
107+
Step exceeds the specified range
108108
range() expects parameter 3 to be int or float, string given
109-
step exceeds the specified range
109+
Step exceeds the specified range
110110

111111
Notice: A non well formed numeric value encountered in %s on line %d
112-
step exceeds the specified range
112+
Step exceeds the specified range
113113

114114
-- Testing Invalid steps --
115115
range() expects parameter 3 to be int or float, string given
116-
step exceeds the specified range
117-
step exceeds the specified range
116+
Step exceeds the specified range
117+
Step exceeds the specified range
118118
range() expects parameter 3 to be int or float, string given
119119
range() expects parameter 3 to be int or float, string given

0 commit comments

Comments
 (0)