Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2011 19:55:54 GMT
From:      Alexandr Kovalenko <alexandr.kovalenko@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/157372: [PATCH] www/pecl-APC: Fix regression (vendor patch)
Message-ID:  <201105271955.p4RJtsic013367@red.freebsd.org>
Resent-Message-ID: <201105272000.p4RK0L9K077775@freefall.freebsd.org>

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

>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:



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