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 3cc6435 commit 60c8be8Copy full SHA for 60c8be8
ext/mbstring/mbstring.c
@@ -2631,6 +2631,7 @@ PHP_FUNCTION(mb_str_begins)
2631
RETURN_BOOL(0);
2632
}
2633
} else {
2634
+ char buffer[42];
2635
switch (-n) {
2636
case 1:
2637
break;
@@ -2641,7 +2642,6 @@ PHP_FUNCTION(mb_str_begins)
2641
2642
php_error_docref(NULL, E_NOTICE, "Argument is empty");
2643
2644
default:
- char buffer[42];
2645
sprintf(buffer, "Unknown error in mb_strpos. Error code: %zu", n);
2646
php_error_docref(NULL, E_WARNING, buffer);
2647
0 commit comments