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));
1362
1362
zend_string_free(buf);
1363
1363
} else {
1364
-
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));
1364
+
zvaltmp;
1365
+
ZVAL_STR(&tmp, message);
1366
+
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));
1365
1367
}
1366
1368
} else {
1367
1369
/* Write CLI/CGI errors to stderr if display_errors = "stderr" */
1368
1370
if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi") || !strcmp(sapi_module.name, "phpdbg")) &&
1369
1371
PG(display_errors) ==PHP_DISPLAY_ERRORS_STDERR
1370
1372
) {
1371
-
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);
1372
1376
#ifdefPHP_WIN32
1373
1377
fflush(stderr);
1374
1378
#endif
1375
1379
} else {
1376
-
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));
1380
+
zvaltmp;
1381
+
ZVAL_STR(&tmp, message);
1382
+
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