[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] =?utf-8?q?svn:_/pecl/apc/trunk/_apc=5Fmain.c?=
From: Xinchen_Hui <laruence () php ! net>
Date: 2012-11-09 7:13:24
Message-ID: svn-laruence-1352445204-328294-408798248 () svn ! php ! net
[Download RAW message or body]
laruence Fri, 09 Nov 2012 07:13:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328294
Log:
Fix compiler warnings
Changed paths:
U pecl/apc/trunk/apc_main.c
Modified: pecl/apc/trunk/apc_main.c
===================================================================
--- pecl/apc/trunk/apc_main.c 2012-11-09 07:07:13 UTC (rev 328293)
+++ pecl/apc/trunk/apc_main.c 2012-11-09 07:13:24 UTC (rev 328294)
@@ -468,7 +468,7 @@
if(h->opened_path) {
filename = h->opened_path;
} else {
- filename = h->filename;
+ filename = (char *)h->filename;
}
stream = php_stream_open_wrapper(filename, "rb", REPORT_ERRORS | \
ENFORCE_SAFE_MODE, NULL); if(stream) {
@@ -510,8 +510,12 @@
}
path = h->opened_path;
- if(!path && key->type == APC_CACHE_KEY_FPFILE) path = \
(char*)key->data.fpfile.fullpath;
- if(!path) path=h->filename;
+ if (!path && key->type == APC_CACHE_KEY_FPFILE) {
+ path = (char*)key->data.fpfile.fullpath;
+ }
+ if (!path) {
+ path = (char *)h->filename;
+ }
apc_debug("2. h->opened_path=[%s] h->filename=[%s]\n" TSRMLS_CC, \
h->opened_path?h->opened_path:"null",h->filename);
--
PECL CVS Mailing List
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