Skip to content
Browse files

Merge branch 'PHP-5.5'

* PHP-5.5:
  Fixed issue #82 (allow comments in blacklist file, lines started with ";")
  • Loading branch information...
2 parents 396b110 + d9c9e78 commit 68d567d56c17af70f68d755bcab62ab7951cf648 @dstogov dstogov committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 ext/opcache/zend_accelerator_blacklist.c
View
5 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 68d567d

Please sign in to comment.
Something went wrong with that request. Please try again.