We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c8be8 commit 9d27d12Copy full SHA for 9d27d12
ext/mbstring/mbstring.c
@@ -2712,6 +2712,7 @@ PHP_FUNCTION(mb_str_ends)
2712
if (!mbfl_is_error(n)) {
2713
RETURN_BOOL(1);
2714
} else {
2715
+ char buffer[42];
2716
switch (-n) {
2717
case 1:
2718
break;
@@ -2722,7 +2723,7 @@ PHP_FUNCTION(mb_str_ends)
2722
2723
php_error_docref(NULL, E_NOTICE, "Argument is empty");
2724
2725
default:
- char buffer[42];
2726
+
2727
sprintf(buffer, "Unknown error in mb_strpos. Error code: %zu", n);
2728
php_error_docref(NULL, E_WARNING, buffer);
2729
0 commit comments