Commit:    d9c9e78369899212650dea1390327d2215779e68
Author:    Dmitry Stogov <dmi...@zend.com>         Tue, 9 Apr 2013 10:51:19 
+0400
Parents:   83500123d02789781c25691527ae720ba1587948
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=d9c9e78369899212650dea1390327d2215779e68

Log:
Fixed issue #82 (allow comments in blacklist file, lines started with ";")

Bugs:
https://bugs.php.net/82

Changed paths:
  M  ext/opcache/zend_accelerator_blacklist.c


Diff:
diff --git a/ext/opcache/zend_accelerator_blacklist.c 
b/ext/opcache/zend_accelerator_blacklist.c
index 0ccd62e..764c950 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);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to