summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@lerdorf.com>2015-02-22 08:14:41 -0800
committerRasmus Lerdorf <rasmus@lerdorf.com>2015-02-22 08:25:56 -0800
commita9ba407ce16809a2a70724bcd481b64ba8bd550b (patch)
tree0cd3332ab7f744dde23679931f3297a4a111cdbd
parent8f6a013c972c40e923b2519226521144b347cce0 (diff)
downloadphp-git-a9ba407ce16809a2a70724bcd481b64ba8bd550b.tar.gz
Fix bug #68166
We can't always efree here php_escape_html_entities can return an interned_empty_string
-rw-r--r--main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index 5e564003fe..733786e447 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1087,7 +1087,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
size_t len;
char *buf = php_escape_html_entities(buffer, buffer_len, &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));
- efree(buf);
+ str_efree(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));
}