Skip to content

Commit 68d567d

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: Fixed issue #82 (allow comments in blacklist file, lines started with ";")
2 parents 396b110 + d9c9e78 commit 68d567d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/zend_accelerator_blacklist.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
212212
continue;
213213
}
214214

215+
/* skip comments */
216+
if (pbuf[0]==';') {
217+
continue;
218+
}
219+
215220
path_dup = zend_strndup(pbuf, path_length);
216221
expand_filepath(path_dup, real_path TSRMLS_CC);
217222
path_length = strlen(real_path);

0 commit comments

Comments
 (0)