From: Dmitry Stogov Date: Tue, 9 Apr 2013 06:51:19 +0000 (+0400) Subject: Fixed issue #82 (allow comments in blacklist file, lines started with ";") X-Git-Tag: php-5.5.0beta3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9c9e78369899212650dea1390327d2215779e68;p=php Fixed issue #82 (allow comments in blacklist file, lines started with ";") --- 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);