diff options
| author | Kris Wallsmith | 2012-01-12 04:17:17 -0800 |
|---|---|---|
| committer | Jack Nagel | 2012-01-22 01:56:06 -0600 |
| commit | 3fa383186979144929cb0fea8b5bd6f974244aae (patch) | |
| tree | c9c4f8d2850a56f4203ca5e91bfe2b1dd272d7d9 /Library/Formula | |
| parent | 9eee4564226e8bb9cfff0a9a40bc64f66ff540e6 (diff) | |
| download | homebrew-3fa383186979144929cb0fea8b5bd6f974244aae.tar.bz2 | |
APC: apply upstream patch
See https://bugs.php.net/bug.php?id=59750
Closes #9556.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/apc.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/apc.rb b/Library/Formula/apc.rb index 96eceaf03..0298b8c69 100644 --- a/Library/Formula/apc.rb +++ b/Library/Formula/apc.rb @@ -7,6 +7,13 @@ class Apc < Formula depends_on 'pcre' + def patches + # fixes "PHP Fatal error: Unknown: apc_fcntl_unlock failed: in Unknown on line 0" + # this has been fixed in the APC trunk but has not been released yet (as of 3.1.9) + # https://bugs.php.net/bug.php?id=59750 + DATA + end + def install Dir.chdir "APC-#{version}" do system "phpize" @@ -35,3 +42,18 @@ class Apc < Formula EOS end end + +__END__ +diff --git a/APC-3.1.9/apc_lock.h b/APC-3.1.9/apc_lock.h +index 77f66d5..aafa3b7 100644 +--- a/APC-3.1.9/apc_lock.h ++++ b/APC-3.1.9/apc_lock.h +@@ -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 |
