diff options
author | Alex Dupre <ale@FreeBSD.org> | 2006-11-22 06:51:32 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2006-11-22 06:51:32 +0000 |
commit | 91684ceb4583ea7fce6c38b647289c65b8c274f5 (patch) | |
tree | 240a75f15539ff3027e46999c746941d0f33128f /www/xcache | |
parent | c507fcb097e290531eb2c5f620a5d70885cfd89d (diff) | |
download | ports-91684ceb4583ea7fce6c38b647289c65b8c274f5.tar.gz ports-91684ceb4583ea7fce6c38b647289c65b8c274f5.zip |
Notes
Diffstat (limited to 'www/xcache')
-rw-r--r-- | www/xcache/Makefile | 1 | ||||
-rw-r--r-- | www/xcache/files/patch-lock.c | 16 | ||||
-rw-r--r-- | www/xcache/files/patch-xcache.c | 41 |
3 files changed, 58 insertions, 0 deletions
diff --git a/www/xcache/Makefile b/www/xcache/Makefile index b6b303922031..d8a4d1eb9dd7 100644 --- a/www/xcache/Makefile +++ b/www/xcache/Makefile @@ -7,6 +7,7 @@ PORTNAME= xcache DISTVERSION= 1.2-beta3 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://210.51.190.228/pub/XCache/Releases/ \ http://210.51.190.228/pub/XCache/snapshots/ diff --git a/www/xcache/files/patch-lock.c b/www/xcache/files/patch-lock.c new file mode 100644 index 000000000000..cce912f40c7b --- /dev/null +++ b/www/xcache/files/patch-lock.c @@ -0,0 +1,16 @@ +--- lock.c (revision 62) ++++ lock.c (revision 282) +@@ -92,5 +92,5 @@ + } + size = strlen(tmpdir) + sizeof("/.xcache.lock") - 1 + 3 * 10 + 100; +- myname = do_alloca(size); ++ myname = malloc(size); + snprintf(myname, size - 1, "%s%c.xcache.%d.%d.%d.lock", tmpdir, DEFAULT_SLASH, (int) getuid(), i ++, rand()); + pathname = myname; +@@ -119,5 +119,5 @@ + + if (myname) { +- free_alloca(myname); ++ free(myname); + } + diff --git a/www/xcache/files/patch-xcache.c b/www/xcache/files/patch-xcache.c new file mode 100644 index 000000000000..a5aa3c826f36 --- /dev/null +++ b/www/xcache/files/patch-xcache.c @@ -0,0 +1,41 @@ +--- xcache.c (revision 278) ++++ xcache.c (revision 283) +@@ -1582,10 +1582,9 @@ + long id = 0; + ++ xcache_admin_auth_check(TSRMLS_C); ++ + if (!xc_initized) { +- php_error_docref(NULL TSRMLS_CC, E_WARNING, "XCache is not initized"); +- RETURN_FALSE; +- } +- +- xcache_admin_auth_check(TSRMLS_C); ++ RETURN_NULL(); ++ } + + if (optype == XC_OP_COUNT) { +@@ -2365,10 +2364,4 @@ + } + +-/* dirty check */ +-#if defined(COMPILE_DL_XCACHE) && (defined(ZEND_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)) +-# define zend_append_version_info(x) do { } while (0) +-#else +-extern void zend_append_version_info(zend_extension *extension); +-#endif + static int xc_zend_extension_startup(zend_extension *extension) + { +@@ -2377,5 +2370,4 @@ + return FAILURE; + } +- zend_append_version_info(extension); + } + return SUCCESS; +@@ -2640,5 +2632,5 @@ + { + if (xc_zend_extension_gotup) { +- return FAILURE; ++ return SUCCESS; + } + xc_zend_extension_gotup = 1; |