View | Details | Raw Unified | Return to bug 170094
Collapse All | Expand All

(-)Makefile (-2 / +1 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	xcache
8
PORTNAME=	xcache
9
DISTVERSION=	2.0.0
9
PORTVERSION=	2.0.1
10
PORTREVISION=	1
11
CATEGORIES=	www
10
CATEGORIES=	www
12
MASTER_SITES=	http://xcache.lighttpd.net/pub/Releases/${DISTVERSION}/
11
MASTER_SITES=	http://xcache.lighttpd.net/pub/Releases/${DISTVERSION}/
13
12
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (xcache-2.0.0.tar.bz2) = ca26b0772d8b88223f281f5099a3b7d9f4b6597a87ae857301271c1fd5a3f64a
1
SHA256 (xcache-2.0.1.tar.bz2) = b6e350f3b327b11e033da44f8b5f464b173e2256b5acc792a1179d29cb499289
2
SIZE (xcache-2.0.0.tar.bz2) = 108614
2
SIZE (xcache-2.0.1.tar.bz2) = 112352
(-)files/patch-xcache.c (-48 lines)
Removed Link Here
1
Index: xcache.c
2
===================================================================
3
--- xcache.c	(revision 899)
4
+++ xcache.c	(revision 900)
5
@@ -839,7 +839,7 @@
6
 				while (xc_stack_count(s)) {
7
 					entry_php = (xc_entry_php_t *) xc_stack_pop(s);
8
 					TRACE("unhold %d:%s", entry_php->file_inode, entry_php->entry.name.str.val);
9
-					entry_php->refcount ++;
10
+					--entry_php->refcount;
11
 					assert(entry_php->refcount >= 0);
12
 				}
13
 			} LEAVE_LOCK(cache);
14
@@ -1939,11 +1939,16 @@
15
 
16
 		if (stored_php) {
17
 			compiler->new_entry.php = stored_php;
18
-			xc_php_addref_unlocked(stored_php);
19
 			xc_entry_php_init(&compiler->new_entry, compiler->opened_path TSRMLS_CC);
20
 			stored_entry = xc_entry_php_store_unlocked(cache, compiler->entry_hash.entryslotid, &compiler->new_entry TSRMLS_CC);
21
-			TRACE(" cached %d:%s, holding", compiler->new_entry.file_inode, stored_entry->entry.name.str.val);
22
-			xc_entry_hold_php_unlocked(cache, stored_entry TSRMLS_CC);
23
+			if (stored_entry) {
24
+				xc_php_addref_unlocked(stored_php);
25
+				TRACE(" cached %d:%s, holding", compiler->new_entry.file_inode, stored_entry->entry.name.str.val);
26
+				xc_entry_hold_php_unlocked(cache, stored_entry TSRMLS_CC);
27
+			}
28
+			else {
29
+				gaveup = 1;
30
+			}
31
 			break;
32
 		}
33
 
34
@@ -2021,10 +2026,11 @@
35
 		}
36
 		/* entry_store */
37
 		compiler->new_entry.php = stored_php;
38
-		xc_php_addref_unlocked(stored_php);
39
 		stored_entry = xc_entry_php_store_unlocked(cache, compiler->entry_hash.entryslotid, &compiler->new_entry TSRMLS_CC);
40
-		if (!stored_entry) {
41
-			xc_php_release_unlocked(cache, stored_php);
42
+		if (stored_entry) {
43
+			xc_php_addref_unlocked(stored_php);
44
+			TRACE(" cached %d:%s, holding", compiler->new_entry.file_inode, stored_entry->entry.name.str.val);
45
+			xc_entry_hold_php_unlocked(cache, stored_entry TSRMLS_CC);
46
 		}
47
 	} LEAVE_LOCK_EX(cache);
48
 	/* }}} */
(-)files/patch-xcache.ini (-18 / +12 lines)
Lines 1-25 Link Here
1
--- xcache.ini.orig	2012-04-12 12:05:56.000000000 +0200
1
--- xcache.ini.orig	2012-06-26 12:11:30.000000000 +0200
2
+++ xcache.ini	2012-04-12 12:07:57.000000000 +0200
2
+++ xcache.ini	2012-07-23 21:46:53.540225111 +0200
3
@@ -1,17 +1,13 @@
3
@@ -2,14 +2,8 @@
4
 [xcache-common]
4
 [xcache-common]
5
-;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
5
 ;; WARNING: zend_extension* = *xcache* MUST be the first(above) of all zend_extension*=*
6
 ;; using extension=xcache.so is not recommended
7
-
8
-;; non-windows example
9
-;; update xxx accordingly
6
-zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
10
-zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
7
-; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
11
-;; windows example:
8
-;; For windows users, replace xcache.so with php_xcache.dll
9
-zend_extension_ts = c:/php/extensions/php_xcache.dll
12
-zend_extension_ts = c:/php/extensions/php_xcache.dll
10
-;; or install as extension, make sure your extension_dir setting is correct
13
-;; for newer PHP, _ts is removed, use the following line instead
11
+;; install as zend extension (recommended)
14
-zend_extension = c:/php/extensions/php_xcache.dll
12
+zend_extension = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so
15
+zend_extension = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so
13
+zend_extension_ts = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so
16
+;zend_extension_ts = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/xcache.so
14
+;; or install as extension
15
 ; extension = xcache.so
16
-;; or win32:
17
-; extension = php_xcache.dll
18
 
17
 
19
 [xcache.admin]
18
 [xcache.admin]
20
 xcache.admin.enable_auth = On
19
 xcache.admin.enable_auth = On
21
-xcache.admin.user = "mOo"
22
+xcache.admin.user = "admin"
23
 ; xcache.admin.pass = md5($your_password)
24
 xcache.admin.pass = ""
25
 

Return to bug 170094