Commit graph

219 commits

Author SHA1 Message Date
grant
27e8036ff1 patch to allow the Oracle extension to be built against Oracle 10.1
libraries. no PKGREVISION bump as the module is not built by default.
needed for upcoming new php-oracle package.
2007-03-11 16:43:49 +00:00
adrianp
2ed60d4384 Update to 4.4.6
* Updated PCRE to version 7.0.
* Fixed segfault in ext/session when register_globals=On.
* Fixed (segfault in cURL extension).
* Fixed (possible cURL memory error).
* Fixed (imagettftext() multithreading issue).
* Fixed (ext/interbase compile failure).
* Fixed (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed).

4.4.5
# Upgraded PEAR to 1.5.0.
# Updated PCRE to version 6.7.
# Moved extensions to PECL: ext/ovrimos
# Added a meta tag to phpinfo() output to prevent search engines from indexing the page.
# Backported a fix in the configure tests to detect the "rounding fuzz".
# Backported fix for ext/imap compilation failure with recent c-client versions.
# Fixed missing open_basedir check inside chdir() function.
# Fixed (Compile fails when using GCC 4.1.1/binutils 2.17).
# Fixed (pg_insert/pg_update do not allow now() to be used for timestamp fields).
# Fixed (using autoconf 2.6x and --with-layout=GNU breaks PEAR install path).
# Fixed (Using $this not in object context can cause segfaults).
# Fixed (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled).
# Fixed (ftp_put() does not change transfer mode to ASCII).
# Fixed (ftp_nlist() returns false on empty dirs).
# Fixed (Allow building of curl extension against libcurl 7.16.0).
# Fixed (curl_exec() with return transfer returns TRUE on empty files).
# Fixed (Fixed a possible open_basedir bypass in tempnam()).
# Fixed (ldap_connect causes segfault with newer versions of OpenLDAP).
# Fixed (parse_url() fails if passing '@' in passwd).
# Fixed (Calling undefined method prints insufficient error message).
# Fixed (segfault when calling setlocale() in userspace session handler).
# Fixed (constructor is not called for classes used in userspace stream wrappers).
# Fixed (wddx_serialize_value() generates no wellformed xml).
# Fixed (aggregate_methods_by_list fails to take certain methods).
# Fixed (natcasesort() causes array_pop() to misbehave).
# Fixed (CURLOPT_HEADERFUNCTION, couldn't set the function in the class).
# Fixed (recursive array_walk causes segfault).
2007-03-03 13:19:52 +00:00
rillig
2829e658f2 Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.
2007-01-07 09:13:46 +00:00
adrianp
b3c87defac Fix for CVE-2006-5465 from PHP CVS
http://www.hardened-php.net/advisory_132006.138.html
2006-11-04 11:19:41 +00:00
wiz
7a77fb48e5 Fix build for php4-curl with curl-7.16.0, using same patch as for php5. 2006-11-03 07:00:39 +00:00
adrianp
20625c2bca Fix for CVE-2006-4625
Bump nb
2006-10-22 13:16:41 +00:00
jdolecek
0f3f8f42e9 remove --enable-memory-limit - 8MB is too low, and this just
duplicates process resource limits, which already provide necessary
"safety net" protection against rogue scripts

bump PKGREVISION for this

adressess PR pkg/32007 by "pancake"

also remove --enable-track-vars, since that configure argument
is long gone from PHP
2006-10-20 22:10:33 +00:00
adrianp
e9f89c2175 PHP 4.4.4 Release Announcement
This release address a series of locally exploitable security problems
discovered since PHP 4.4.3. All PHP users are encouraged to upgrade to this
release as soon as possible.

This release provides the following security fixes:

* Added missing safe_mode/open_basedir checks inside the error_log(),
  file_exists(), imap_open() and imap_reopen() functions.
* Fixed overflows inside str_repeat() and wordwrap() functions on 64bit systems.
* Fixed possible open_basedir/safe_mode bypass in cURL extension.
* Fixed overflow in GD extension on invalid GIF images.
* Fixed a buffer overflow inside sscanf() function.
* Fixed memory_limit restriction on 64 bit system.
2006-08-20 09:44:59 +00:00
salo
224e923b40 Add RCSid for better tracking. 2006-08-16 06:49:56 +00:00
adrianp
c6db99b6c0 Update to 4.4.3
All PHP 4.x users are encouraged to upgrade to this release as soon as possible.

The security issues resolved include the following:

* Disallow certain characters in session names.
* Fixed a buffer overflow inside the wordwrap() function.
* Prevent jumps to parent directory via the 2nd parameter of the tempnam()
  function.
* Improved safe_mode check for the error_log() function.
* Fixed cross-site scripting inside the phpinfo() function.

The release also includes about 20 bug fixes and an upgraded PCRE library
(version 6.6).

For a full list of changes in PHP 4.4.3, see the ChangeLog:
http://www.php.net/ChangeLog-4.php#4.4.3

This also contains a fix for CVE-2006-4020 (SA21403)
2006-08-10 23:01:39 +00:00
adrianp
b6c1c57f6b Replace an absolute path for sh
Ride the previous nb bump
2006-07-18 21:26:17 +00:00
adrianp
9a8ee5cca1 Fix for CVE-2006-1990
Fix for CVE-2006-3011
Include our own pear.sh from the tarball but slightly hacked to get around
memory isses on installation.
2006-07-18 21:21:19 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
jlam
ee68c93314 LIBTOOL_OVERRIDE generally doesn't need to be specified anymore... just
set OVERRIDE_DIRDEPTH to find any libtool scripts deeper in the WRKSRC
tree unless they're named something other than "libtool".

SHLIBTOOL_OVERRIDE generally doesn't need to be specified either -- just
define it to the empty list and shlibtool-override will look for libtool
scripts.
2006-07-07 15:49:30 +00:00
jlam
e5bd7c7b27 Note in the MESSAGE file the path to the PHP CGI binary to answer an FAQ. 2006-06-06 16:42:02 +00:00
minskim
0b495d2148 This package needs lex to build. Add it to USE_TOOLS. 2006-06-05 18:19:55 +00:00
minskim
5d3a22561e Libtoolize link commands on Darwin. Previously, pakcages providing
php-* modules failed on Darwin because gcc was used to link them.
Thanks to John Klos for testing.

Bump PKGREVISION.
2006-05-11 06:50:39 +00:00
jdolecek
720c00e9ec add patch to actually compile the contents of PHP WDDX module; before
it produced empty *.so and the module couldn't be actually used
2006-04-22 10:27:05 +00:00
cube
c1c69c8faa The actual patches for PHP4/5. 2006-04-14 13:48:33 +00:00
cube
1050521ede PHP4/5 security changes... They're not critical issues; secunia classes
them between "not critical" and "less critical".

Fix CVE-2006-0996, CVE-2006-1494, CVE-2006-1608, CVE-2006-1490.

See:
    http://secunia.com/advisories/19383/
    http://secunia.com/advisories/19599/

Patches were extracted from CVS.  I had to translate the one for
CVE-2006-1608 on php4 because it has not made its way to the php4.4 branch
(I don't know why;  I can confirm it fixes the issue).

While here, add PATCHDIR to the list of variables php5's Makefile.php
defines.  That way, ap-php gets patched too...
2006-04-14 13:47:29 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
cube
0ee026e6b4 Increase memory limit when installing PEAR packages. This allows the
installation to go through on NetBSD/sparc64 (well, at least mine).

Failure reported by Joel Carnat.
2006-03-06 15:57:58 +00:00
cube
a630484f42 Update to version 4.4.2. Ok'd by jdolecek@.
This is a bug fix release, which addresses some security problems too.
The major points that this release corrects are:

    * Prevent header injection by limiting each header to a single line.
    * Possible XSS inside error reporting functionality.
    * Missing safe_mode/open_basedir checks into cURL extension.
    * Apache 2 regression with sub-request handling on non-Linux systems.
    * key() and current() regression related to references.

This release also fixes about 30 other defects.
2006-03-03 07:11:34 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
joerg
02185a8424 Allow choosing of CGI or FastCGI as SAPI for the PHP interpreter.
This is done via an option group, default is CGI. Note that the
FastCGI interpreter can still be used for normal CGI, but there
might be security issues involved in doing so.
2005-11-21 09:13:28 +00:00
rillig
67cb6ffda2 PKGBASE is defined too late to be used in PKG_OPTIONS_VAR. 2005-11-11 07:04:57 +00:00
bouyer
2fc572ef1d php 4.4.1 has a bug which cause squirrelmail's sort function to misbehave:
(endless loop):
http://bugs.php.net/bug.php?id=35067
Pull in a patch from the php CVS repository to fix this, as suggested a
squirrelmail mailing list:
http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.543.2.51.2.3&r2=1.543.2.51.2.4&ty=u

OK'd by Jaromir Dolecek, tested on apache-1 and apache-2 servers.
Bump pkgrevision.
2005-11-08 20:33:55 +00:00
rillig
6a417285d9 Replaced ${PKGNAME:C...} with the equivalent ${PKGBASE}. 2005-11-05 17:25:39 +00:00
tv
588f2e8e9c Use --with-openssl=${BUILDLINK_PREFIX.openssl} to specify real path
so that configure won't try to run the (possibly not installed) pkg-config.
2005-11-04 21:16:30 +00:00
tron
9c44cbac33 Remove obsolete file "include/php/main/config.nw.h" from package list,
bump revision.
2005-11-02 10:48:01 +00:00
tron
bd22bf435f Remove "XML_RPC-1.4.0.tgz". It is part of PHP 4.4.1 and therefore no
longer downloaded manually.
2005-11-02 09:47:23 +00:00
jdolecek
d61df3cdc3 Update php to 4.4.1. Besides incorporating XML_RPC-1.4.0 and fopen wrappers
security fix, this fixes serious security problems regarding overwriting
of the GLOBALS array.

All users of PHP 4.3 and 4.4 sare encouradged to update to this version.

The --with-regex=system bug with re_magic has been fixed too, so re-enabling
use of --with-regex=system for all operating systems again
2005-11-01 23:12:15 +00:00
jdolecek
c3aaebde98 php regex is also necessary on Linux; pointed out by Ondrej Tuma
in private e-mail
2005-10-23 16:59:49 +00:00
tv
a0109ad7f7 Bring back the "ssl" option so that the builder may have the *option* to
turn it off.  It's still on by default (in PKG_SUGGESTED_OPTIONS), so
no PKGREVISION bump required.
2005-10-19 18:05:06 +00:00
jdolecek
ebc5ce969d Fix bug in mbstring extension function mb_encode_mimeheader(), which
misinterpreted some Japanese characters as ASCII.

PR: 31223 by Takahiro Kambe
2005-10-16 12:17:47 +00:00
jdolecek
6b9fd02500 use PHP-provided regex on Solaris, PHP doesn't build with system regex
there

PR: 31047 by Gilles Dauphin
2005-10-16 12:06:05 +00:00
jdolecek
bee60cd555 make it possible to switch the IPv6 support on/off via a package option,
similarily how this is done in lang/php5/Makefile.php; default depends
in USE_INET6 setting, i.e. enabled iff OS supports it
2005-10-08 21:12:53 +00:00
jdolecek
d5cda8e47c openssl is included unconditionally 2005-10-08 20:34:26 +00:00
jdolecek
74a374c9ac fix plural 2005-10-08 16:51:50 +00:00
jdolecek
e4855206f0 Unfortunately PHP has several openssl hooks, which are only enabled
when the base PHP is compiled with openssl extension (e.g. ssl://, tls://
stream support, and couple others). These don't work when SSL support
is loaded via extension.

For this reason, make openssl extension unconditionally built-in
into the main PHP package, and g/c security/php-openssl.
2005-10-08 16:49:35 +00:00
jdolecek
f2d1572c3d Add a fix to LDAP extension build to properly detect LDAP capabilities,
such as TLS support.

Patch provided by Stoned Elipot in private e-mail.
2005-10-07 21:09:27 +00:00
tron
a6bbb8d213 Add patch from Debian bug report 323585 to fix CAN-2005-3054. 2005-10-05 15:59:47 +00:00
jdolecek
74235692f3 put back XML_RPC upgrade - the fixed one is 1._4_.0, not 1.3.1 2005-09-10 09:04:01 +00:00
jdolecek
e8523e4c18 PHP 4.4.0 already comes with XML_RPC 1.3.1, so it's not necessary to update
it separately
2005-09-10 08:58:55 +00:00
jlam
2b2a2f2f15 Move some options that only apply to the PHP CGI package from Makefile.php
(shared with ap-php) into the php package Makefile.
2005-09-04 20:13:59 +00:00