[prev in list] [next in list] [prev in thread] [next in thread]
List: php-cvs
Subject: [PHP-CVS] com php-src: Fixed php-5.2 support: =?UTF-8?Q?ext/opcache/zend=5Faccelera?= =?UTF-8?Q?tor=
From: Dmitry Stogov <dmitry () php ! net>
Date: 2013-07-30 23:22:34
Message-ID: php-mail-0286c3fc728cc53ac2f1c30066778e9c1753260676 () git ! php ! net
[Download RAW message or body]
Commit: f3aca8bc4dd2556bb1db476d94e01a2ced000f39
Author: Dmitry Stogov <dmitry@zend.com> Wed, 31 Jul 2013 03:22:34 +0400
Parents: 2bd23530d83c09add1d4fd36cdea77f7d3746504
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f3aca8bc4dd2556bb1db476d94e01a2ced000f39
Log:
Fixed php-5.2 support
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 b11d41e..da83cfd 100644
--- a/ext/opcache/zend_accelerator_blacklist.c
+++ b/ext/opcache/zend_accelerator_blacklist.c
@@ -30,6 +30,10 @@
# include "main/php_regex.h"
#endif
+#if ZEND_EXTENSION_API_NO < PHP_5_3_X_API_NO
+# include "ext/standard/php_string.h"
+#endif
+
#ifdef ZEND_WIN32
# define REGEX_MODE (REG_EXTENDED|REG_NOSUB|REG_ICASE)
#else
@@ -252,7 +256,11 @@ void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename)
zend_accel_error(ACCEL_LOG_DEBUG,"Loading blacklist file: '%s'", filename);
if (VCWD_REALPATH(filename, buf)) {
+#if ZEND_EXTENSION_API_NO < PHP_5_3_X_API_NO
+ blacklist_path_length = php_dirname(buf, strlen(buf));
+#else
blacklist_path_length = zend_dirname(buf, strlen(buf));
+#endif
blacklist_path = zend_strndup(buf, blacklist_path_length);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic