com php-src: Fixed compilation warning: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Mon, 21 Oct 2013 10:17:10 +0000 |
| Subject: | com php-src: Fixed compilation warning: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73769@lists.php.net to get a copy of this message | ||
Commit: 60ce3811ae3b86eb7bfb86cc965e3f79e61bfc4a
Author: Dmitry Stogov <dmitry@zend.com> Mon, 21 Oct 2013 14:17:10 +0400
Parents: 098855433dc5d609e3970f0bc9d6766c007273f3
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=60ce3811ae3b86eb7bfb86cc965e3f79e61bfc4a
Log:
Fixed compilation warning
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 48ff730..8cee80f 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -150,7 +150,7 @@ static inline int is_phar_relative_alias_path(const char *filename, char **alias
if (memcmp(filename, "phar://", sizeof("phar://") - 1) == 0
&& filename[sizeof("phar://") - 1] != '\0' &&
filename[sizeof("phar://") - 1] != '/') {
char *slash;
- *alias = filename + sizeof("phar://") - 1;
+ *alias = (char*)filename + sizeof("phar://") - 1;
slash = strstr(*alias, "/");
if (slash) {
*alias_len = slash - *alias;