Skip to content

Commit 9d27d12

Browse files
authored
Update mbstring.c
1 parent 60c8be8 commit 9d27d12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,7 @@ PHP_FUNCTION(mb_str_ends)
27122712
if (!mbfl_is_error(n)) {
27132713
RETURN_BOOL(1);
27142714
} else {
2715+
char buffer[42];
27152716
switch (-n) {
27162717
case 1:
27172718
break;
@@ -2722,7 +2723,7 @@ PHP_FUNCTION(mb_str_ends)
27222723
php_error_docref(NULL, E_NOTICE, "Argument is empty");
27232724
break;
27242725
default:
2725-
char buffer[42];
2726+
27262727
sprintf(buffer, "Unknown error in mb_strpos. Error code: %zu", n);
27272728
php_error_docref(NULL, E_WARNING, buffer);
27282729
break;

0 commit comments

Comments
 (0)