mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
- Cleanup some output functions
This commit is contained in:
parent
499507ca0e
commit
2622eba31d
@ -47,7 +47,7 @@ static void incomplete_class_message(zend_property_reference *ref)
|
|||||||
|
|
||||||
efree(class_name);
|
efree(class_name);
|
||||||
|
|
||||||
php_error(E_ERROR, buf);
|
php_error(E_ERROR, "%s", buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void incomplete_class_call_func(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference)
|
static void incomplete_class_call_func(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference)
|
||||||
|
@ -51,7 +51,7 @@ static int _display_module_info(zend_module_entry *module, void *arg)
|
|||||||
} else if (!show_info_func && !module->info_func) {
|
} else if (!show_info_func && !module->info_func) {
|
||||||
php_printf("<TR VALIGN=\"baseline\" BGCOLOR=\"" PHP_CONTENTS_COLOR "\">");
|
php_printf("<TR VALIGN=\"baseline\" BGCOLOR=\"" PHP_CONTENTS_COLOR "\">");
|
||||||
php_printf("<TD>");
|
php_printf("<TD>");
|
||||||
php_printf(module->name);
|
php_printf("%s", module->name);
|
||||||
php_printf("</TD></TR>\n");
|
php_printf("</TD></TR>\n");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -287,7 +287,7 @@ void php_log_err(char *log_message)
|
|||||||
time(&error_time);
|
time(&error_time);
|
||||||
strftime(error_time_str, 128, "%d-%b-%Y %H:%M:%S", php_localtime_r(&error_time, &tmbuf));
|
strftime(error_time_str, 128, "%d-%b-%Y %H:%M:%S", php_localtime_r(&error_time, &tmbuf));
|
||||||
fprintf(log_file, "[%s] ", error_time_str);
|
fprintf(log_file, "[%s] ", error_time_str);
|
||||||
fprintf(log_file, log_message);
|
fprintf(log_file, "%s", log_message);
|
||||||
fprintf(log_file, "\n");
|
fprintf(log_file, "\n");
|
||||||
fclose(log_file);
|
fclose(log_file);
|
||||||
return;
|
return;
|
||||||
|
@ -278,7 +278,7 @@ static void php_apache_log_message(char *message)
|
|||||||
log_error(message, ((request_rec *) SG(server_context))->server);
|
log_error(message, ((request_rec *) SG(server_context))->server);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, message);
|
fprintf(stderr, "%s", message);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ static void sapi_cgi_register_variables(zval *track_vars_array ELS_DC SLS_DC PLS
|
|||||||
static void sapi_cgi_log_message(char *message)
|
static void sapi_cgi_log_message(char *message)
|
||||||
{
|
{
|
||||||
if (php_header()) {
|
if (php_header()) {
|
||||||
fprintf(stderr, message);
|
fprintf(stderr, "%s", message);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user