You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
php_printf("%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%"PRIu32"</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, ZSTR_VAL(buf), ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
1351
1351
zend_string_free(buf);
1352
1352
} else {
1353
-
php_printf("%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%"PRIu32"</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, ZSTR_VAL(message), ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
1353
+
zvaltmp;
1354
+
ZVAL_STR(&tmp, message);
1355
+
php_printf_unchecked("%s<br />\n<b>%s</b>: %Z in <b>%s</b> on line <b>%"PRIu32"</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, &tmp, ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
1354
1356
}
1355
1357
} else {
1356
1358
/* Write CLI/CGI errors to stderr if display_errors = "stderr" */
1357
1359
if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.name, "phpdbg")) &&
1358
1360
PG(display_errors) ==PHP_DISPLAY_ERRORS_STDERR
1359
1361
) {
1360
-
fprintf(stderr, "%s: %s in %s on line %"PRIu32"\n", error_type_str, ZSTR_VAL(message), ZSTR_VAL(error_filename), error_lineno);
fprintf(stderr, " in %s on line %"PRIu32"\n", ZSTR_VAL(error_filename), error_lineno);
1361
1365
#ifdefPHP_WIN32
1362
1366
fflush(stderr);
1363
1367
#endif
1364
1368
} else {
1365
-
php_printf("%s\n%s: %s in %s on line %"PRIu32"\n%s", STR_PRINT(prepend_string), error_type_str, ZSTR_VAL(message), ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
1369
+
zvaltmp;
1370
+
ZVAL_STR(&tmp, message);
1371
+
php_printf_unchecked("%s\n%s: %Z in %s on line %"PRIu32"\n%s", STR_PRINT(prepend_string), error_type_str, &tmp, ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
0 commit comments