diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-02-18 11:44:58 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-02-18 11:44:58 +0400 |
commit | 1c4f3d39a805323dc60f2bc1bfc96e39d608ac37 (patch) | |
tree | 0a78e184e192712e530cfb7007432f9c84e65b2e /main/main.c | |
parent | a0fe8e5a91024710372625555b7d84dc9726e2da (diff) | |
download | php-git-1c4f3d39a805323dc60f2bc1bfc96e39d608ac37.tar.gz |
Use better data structures (incomplete)
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c index b3dbfa0f8b..b2068cd137 100644 --- a/main/main.c +++ b/main/main.c @@ -1090,7 +1090,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ if (PG(html_errors)) { if (type == E_ERROR || type == E_PARSE) { zend_string *buf = php_escape_html_entities(buffer, buffer_len, 0, ENT_COMPAT, NULL TSRMLS_CC); - php_printf("%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, buf, error_filename, error_lineno, STR_PRINT(append_string)); + php_printf("%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, buf->val, error_filename, error_lineno, STR_PRINT(append_string)); STR_FREE(buf); } else { php_printf("%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, buffer, error_filename, error_lineno, STR_PRINT(append_string)); |