Skip to content

Commit

Permalink
Merge branch 'PHP-5.5'
Browse files Browse the repository at this point in the history
* PHP-5.5:
  Fixed issue #82 (allow comments in blacklist file, lines started with ";")
  • Loading branch information
dstogov committed Apr 9, 2013
2 parents 396b110 + d9c9e78 commit 68d567d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/opcache/zend_accelerator_blacklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 68d567d

Please sign in to comment.