From d9c9e78369899212650dea1390327d2215779e68 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 9 Apr 2013 10:51:19 +0400 Subject: [PATCH] Fixed issue #82 (allow comments in blacklist file, lines started with ";") --- ext/opcache/zend_accelerator_blacklist.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/opcache/zend_accelerator_blacklist.c b/ext/opcache/zend_accelerator_blacklist.c index 0ccd62e344..764c9507d5 100644 --- a/ext/opcache/zend_accelerator_blacklist.c +++ b/ext/opcache/zend_accelerator_blacklist.c @@ -212,6 +212,11 @@ void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename) continue; } + /* skip comments */ + if (pbuf[0]==';') { + continue; + } + path_dup = zend_strndup(pbuf, path_length); expand_filepath(path_dup, real_path TSRMLS_CC); path_length = strlen(real_path); -- 2.40.0