Permalink
Browse files

Fixed issue #82 (allow comments in blacklist file, lines started with…

… ";")
  • Loading branch information...
dstogov committed Apr 9, 2013
1 parent 8350012 commit d9c9e78369899212650dea1390327d2215779e68
Showing with 5 additions and 0 deletions.
  1. +5 −0 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);

0 comments on commit d9c9e78

Please sign in to comment.