ports/157372: [PATCH] www/pecl-APC: Fix regression (vendor patch)

Alexandr Kovalenko alexandr.kovalenko at gmail.com
Fri May 27 20:00:26 UTC 2011


>Number:         157372
>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:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 27 20:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
>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, try to run any php script.
>Fix:
Put attached patch to ports/www/pecl-APC/files/

Patch provided by vendor (look bug at: http://pecl.php.net/bugs/bug.php?id=22688 ).

Patch attached with submission follows:

--- apc_lock.h	2011/03/14 06:47:16	309203
+++ 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:



More information about the freebsd-ports-bugs mailing list