Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2011 19:05:02 GMT
From:      Alexandr Kovalenko <never@nevermind.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/157276: [PATCH] www/pecl-APC: Fix regression (vendor patch)
Message-ID:  <201105231905.p4NJ52a4099897@red.freebsd.org>
Resent-Message-ID: <201105231910.p4NJA9fP094774@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         157276
>Category:       ports
>Synopsis:       [PATCH] www/pecl-APC: Fix regression (vendor patch)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 23 19:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
FreeBSD 8.2-RELEASE amd64
>Description:
        After upgrading pecl-APC to 3.1.9 users experience error messages "Unknown: apc_fcntl_unlock failed: in Unknown 0" and PHP scripts abort execution when apc enabled.

>How-To-Repeat:
        Install apache, php, enable APC in php.ini

>Fix:
        Add patch attached (provided by vendor: http://pecl.php.net/bugs/bug.php?id=22688 )



Patch attached with submission follows:

--- pecl/apc/trunk/apc_lock.h	2011/03/14 06:47:16	309203
+++ pecl/apc/trunk/apc_lock.h	2011/05/22 17:18:49	311339
@@ -154,7 +154,7 @@
 # define apc_lck_nb_lock(a)    apc_fcntl_nonblocking_lock(a TSRMLS_CC)
 # define apc_lck_rdlock(a)     apc_fcntl_rdlock(a TSRMLS_CC)
 # define apc_lck_unlock(a)     apc_fcntl_unlock(a TSRMLS_CC)
-# define apc_lck_rdunlock(a)   apc_fcntl_unlock(&a TSRMLS_CC)
+# define apc_lck_rdunlock(a)   apc_fcntl_unlock(a TSRMLS_CC)
 #endif
 
 #endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105231905.p4NJ52a4099897>