pkgsrc/lang/php5/patches/patch-ak
martti d5484cd27d Updated lang/php5 to 5.1.2
* HTTP Response Splitting has been addressed in ext/session and in
  the header() function.
* Fixed format string vulnerability in ext/mysqli.
* Fixed possible cross-site scripting problems in certain error conditions.
* Hash & XMLWriter extensions added and enabled by default.
* Upgraded OCI8 extension.
* Over 85 various bug fixes.

(I haven't heard anything from the MAINTAINER but since this works fine
on my servers and as this fixes security issues I checked in this)
2006-02-06 06:39:59 +00:00

27 lines
1,000 B
Text

$NetBSD: patch-ak,v 1.2 2006/02/06 06:39:59 martti Exp $
--- ext/imap/php_imap.c.orig 2006-01-05 02:47:16.000000000 +0200
+++ ext/imap/php_imap.c 2006-02-05 15:37:19.000000000 +0200
@@ -429,6 +429,11 @@
ZEND_INIT_MODULE_GLOBALS(imap, php_imap_init_globals, NULL)
+/*
+ * Optionally use the installed c-client linkage.c to determine which drivers
+ * are authenticators are linked in. Otherwise use this fixed list.
+ */
+#ifndef HAVE_IMAP_LINKAGE
#ifndef PHP_WIN32
mail_link(&unixdriver); /* link in the unix driver */
mail_link(&mhdriver); /* link in the mh driver */
@@ -444,6 +449,10 @@
mail_link(&tenexdriver); /* link in the tenex driver */
mail_link(&mtxdriver); /* link in the mtx driver */
mail_link(&dummydriver); /* link in the dummy driver */
+#else /* HAVE_IMAP_LINKAGE */
+ /* link in the c-client mail and auth drivers */
+#include "linkage.c"
+#endif /* HAVE_IMAP_LINKAGE */
#ifndef PHP_WIN32
auth_link(&auth_log); /* link in the log authenticator */