Commit graph

70 commits

Author SHA1 Message Date
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
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
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
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
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
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
tron
9c44cbac33 Remove obsolete file "include/php/main/config.nw.h" from package list,
bump revision.
2005-11-02 10:48:01 +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
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
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
tron
1b1e46acc1 Use "${GZCAT}" instead of "{GZIP_CMD} -cd". 2005-08-18 07:47:50 +00:00
tron
90c2aefac5 Use per distribution file site list for "XML_RPC-1.4.0.tgz". 2005-08-17 21:13:53 +00:00
tron
025c806a70 Define "USE_TOOLS" to make "post-extract" target work on arbitrary
configurations. Problem pointed out by Adrian Portelli in
private e-mail.
2005-08-17 20:58:15 +00:00
tron
a3b83c67cd Update "php4" package to version 4.4.0. The update fixes a large number
of bugs discovered since the 4.3.11 release which could e.g. lead to
memory corruption.

Furthermore integrate version 1.4.0 of PEAR XML_RPC which contains a fix
for the "PEAR XML_RPC Remote PHP Code Injection Vulnerability" security
problem reported by the Hardened-PHP Project.
2005-08-17 19:58:34 +00:00
jdolecek
0ef8398d93 g/c the UPGRADE_PKG code - it's no longer used, and the empty 'for'
list causes problems with some (e.g. Irix) shells
2005-06-12 08:18:28 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
jdolecek
ddc89cd2e3 Update php4 to 4.3.11.
This is a maintenance release that in addition to over 70 non-critical
bug fixes addresses several security issues inside the exif and
fbsql extensions as well as the unserialize(), swf_definepoly()
and getimagesize() functions.  All Users of PHP are strongly
encouraged to upgrade to this release.

Bugfix release
* Crash in bzopen() if supplied path to non-existent file.
* DOM crashing when attribute appended to Document.
* unserialize() float problem on non-English locales.
* Crash in msg_send() when non-string is stored without being serialized.
* Possible infinite loop in imap_mail_compose().
* Fixed crash in chunk_split(), when chunklen > strlen.
* session_set_save_handler crashes PHP when supplied non-existent object ref.
* Memory leak in zend_language_scanner.c.
* Compile failures of zend_strtod.c.
* Fixed crash in overloaded objects & overload() function.
* cURL functions bypass open_basedir.

PHP4 also doesn't bundle PEAR Net_Socket and Net_SMTP anymore now.
2005-04-11 20:02:56 +00:00
jdolecek
3f96adcd1d php4 4.3.10 already ships with Net_SMTP-1.2.6, so don't bother trying
to update
2004-12-17 07:40:45 +00:00
jdolecek
1c217a3f54 abort do-install if pear upgrade fails 2004-12-12 09:42:21 +00:00
jdolecek
45205bcc3c Upgrade bundled Net_Socket to 1.0.2 and Net_SMTP to 1.2.6 on installation.
These include some important bug fixes, and some other pear packages
require the newer versions.

Bump PKGREVISION, and BUILDLINK_RECOMMENDED.
2004-11-27 14:00:08 +00:00
xtraeme
24eb0477c9 bl3ify 2004-04-24 23:03:25 +00:00
jlam
3ebe053d90 LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:49 +00:00
grant
e3d128293a replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:18:32 +00:00
jdolecek
0d0ea1f24e Update PHP to 4.3.4
From release announcemenet:

After a lengthy QA process, PHP 4.3.4 is finally out!
This is a medium size maintenance release, with a fair number of bug fixes.
All users are encouraged to upgrade to 4.3.4.

Bugfix release

PHP 4.3.4 contains, among others, following important fixes, additions
and improvements:
* Fixed disk_total_space() and disk_free_space() under FreeBSD.
* Fixed FastCGI support on Win32.
* Fixed FastCGI being unable to bind to a specific IP.
* Fixed several bugs in mail() implementation on win32.
* Fixed crashes in a number of functions.
* Fixed compile failure on MacOSX 10.3 Panther.
* Over 60 various bug fixes!

For full list of changes in PHP 4.3.4, see ChangeLog:
	http://www.php.net/ChangeLog-4.php#4.3.4
2003-11-08 06:58:10 +00:00
jdolecek
90c1c1709f Update PHP to final 4.3.3
Some highlights of changes since 4.2.3:
* PCRE updated to 4.3, GD to 2.0.15
* improved Apache2 support
* much improved stream & URL wrapper support, output compression support
* added CLI (Command Line Interface) SAPI
* debug_backtrace() backported from ZendEngine2
* faster build system
* huge number of other bug fixes and improvements

Packaging changes:
* 'pcre', 'xml', and 'session' modules folded back into main package -
  'pcre' and 'xml' is required by PEAR, and 'session' is just too essential
  to be separate
* 'gd' module now uses bundled PHP GD library, which is better integrated
* PHP modules use shared distinfo when possible to ease future PHP updates
* ${PREFIX}/bin/php is now CLI version, ${PREFIX}/libexec/cgi-big/php
  remains CGI version
2003-08-31 19:55:21 +00:00
grant
098cc5097a use LINK_ALL_LIBGCC_HACK
remove some unneeded parens
2003-06-29 16:30:32 +00:00
lukem
600b084e41 Fix for wordwrap() buffer overflow, per
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1396
(Patch obtained from RedHat's php-4.2.2-8.0.7.src.rpm.)

Bump PKGREVISION.
2003-02-21 05:39:03 +00:00
jlam
48ead3a5dd Bump PKGREVISION of www/php4 to 1. This fixes a problem reported on
tech-pkg@ where the incorrect libtoolize was being invoked.  We now pass
in the path to libtoolize via the environment, much like how the other
GNU auto* tools are found in pkgsrc.
2003-02-03 23:53:24 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
jlam
6df0e56b17 Make php4 and ap-php4 actually use our libtool again. 2003-01-08 01:52:41 +00:00
martti
a9e061798a Updated php to 4.2.3
* lots of bug fixes
* experimental apache2 support
* added IPv6 support to gethostbyaddr()

ATTENTION!! register_globals defaults to 'off' now
2002-10-14 06:21:05 +00:00
wiz
6aedfe3b0f Make modules use automake.mk. Bump PKGREVISION for phpize change. 2002-10-02 23:48:07 +00:00
agc
cb0e38446b Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 to
generalise the linker flags used to export symbols by setting them on
a per-OS basis.

> many packages force -Wl,-export-dynamic which is not portable outside GNU ld
> and cause problems e.g. on Solaris.  some of these packages use if
> conditionals either only for NetBSD or except SunOS, but the state is not
> coherent and it may complicate later when support for new OS is added to
> pkgsrc (e.g. ongoing work on HP-UX support).
>
> jlam proposed the following framework in discussion on tech-pkg:
>
>   http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html
>
> now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining
> -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable
> values.  packages should be converted to this framework by:
>
> 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with:
>
>    LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
>
> 2) for use in patchfiles, add this variable to MAKE_ENV if needed:
>
>    MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS}
>
> 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch
>    files with:
>
>    $(EXPORT_SYMBOLS_LDFLAGS)
2002-09-04 14:47:32 +00:00
grant
1073ef32e7 The Solaris linker doesn't understand --export-dynamic, so give this a
chance of working by only passing -Wl,--export-dynamic if we are not
on SunOS.
2002-08-26 00:16:57 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
jlam
1cc929effe Update php4 and ap-php4 to 4.1.2. Changes from version 4.1.1 include:
- Fixed start up failure when mm save handler is used and there is multiple
  SAPIs are working at the same time. (Yasuo)
- Fixed a buffer overflow in the RFC-1867 file upload code (Stefan)

			<===> SECURITY NOTE <===>

Note that the buffer overflow fix is a major security fix.  Quoting from
the security advisory at:

	http://security.e-matters.de/advisories/012002.html

"PHP supports multipart/form-data POST requests (as described in RFC1867)
known as POST fileuploads. Unfourtunately there are several flaws in the
php_mime_split function that could be used by an attacker to execute
arbitrary code. During our research we found out that not only PHP4 but
also older versions from the PHP3 tree are vulnerable.

[...]

"If you are running PHP 4.0.3 or above one way to workaround these bugs is
to disable the fileupload support within your php.ini (file_uploads = Off).
If you are running php as module keep in mind to restart the webserver.
Anyway you should better install the fixed or a properly patched version to
be safe."
2002-02-28 06:14:45 +00:00
jlam
a407f5cb9e Update www/php4 to 4.1.0. Major changes from version 4.0.6 include:
- Introduced a new $_REQUEST array, which includes any GET, POST or COOKIE
  variables.  Like the other new variables, this variable is also available
  regardless of the context.
- Introduced $_GET, $_POST, $_COOKIE, $_SERVER and $_ENV variables, which
  deprecate the old $HTTP_*_VARS arrays.  In addition to be much shorter to
  type - these variables are also available regardless of the scope, and
  there's no need to import them using the 'global' statement.

Other relevant changes include:

- Bug fixes to prevent crashes on unexpected input.
- Huge performance improvements, especially in thread-safe code.
- Introduced extension version numbers.
- Added support for single dimensional SafeArrays and Enumerations.
  Added an is_enum() function to check if a component implements an
  enumeration.
- Improved speed of the serializer/deserializer.
- Floating point numbers are better detected when converting from strings.
- Added import_request_variables(), to allow users to safely import form
  variables to the global scope
- Add config option (always_populate_raw_post_data) which when enabled
  will always populate $HTTP_RAW_POST_DATA regardless of the post mime
  type
- Added getmygid() and safe_mode_gid ini directive to allow safe mode to do
  a gid check instead of a uid check.
- Assigning to a string offset beyond the end of the string now automatically
  increases the string length by padding it with spaces, and performs the
  assignment.
2001-12-31 23:54:24 +00:00
jlam
5725a8578b Missed a PHP_PKG_VERS -> PKGREVISION conversion. 2001-12-11 06:12:44 +00:00