Skip to content

Commit 000fe44

Browse files
committed
Review
1 parent 908534d commit 000fe44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2661,7 +2661,7 @@ PHP_FUNCTION(ord)
26612661
"Providing an empty string is deprecated");
26622662
} else {
26632663
php_error_docref(NULL, E_DEPRECATED,
2664-
"Providing a string which is not one byte long is deprecated, use ord($str[0]) instead");
2664+
"Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead");
26652665
}
26662666
}
26672667
RETURN_LONG((unsigned char) ZSTR_VAL(str)[0]);

ext/standard/tests/strings/ord_not_1_byte.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ var_dump(ord("Hello"));
1111
Deprecated: ord(): Providing an empty string is deprecated in %s on line 3
1212
int(0)
1313

14-
Deprecated: ord(): Providing a string which is not one byte long is deprecated, use ord($str[0]) instead in %s on line 4
14+
Deprecated: ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead in %s on line 4
1515
int(72)

0 commit comments

Comments
 (0)