diff --git a/ext/standard/html.c b/ext/standard/html.c
index de763cf72a6..a40268115ef 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -1360,7 +1360,6 @@ PHPAPI char *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, size
matches_map = 0;
if (this_char != '&') { /* no entity on this position */
- int found = 0;
const unsigned char *rep = NULL;
size_t rep_len = 0;
diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c
index 68ef375d3a9..7ba365424fb 100644
--- a/ext/zip/zip_stream.c
+++ b/ext/zip/zip_stream.c
@@ -104,7 +104,6 @@ static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_D
size_t file_basename_len;
char file_dirname[MAXPATHLEN];
struct zip *za;
- struct zip_file *zf = NULL;
char *fragment;
int fragment_len;
int err;