Security Enhancements and Fixes in PHP 5.2.12: * Fixed a safe_mode bypass in tempnam() identified by Grzegorz Stachowiak. (CVE-2009-3557, Rasmus) * Fixed a open_basedir bypass in posix_mkfifo() identified by Grzegorz Stachowiak. (CVE-2009-3558, Rasmus) * Added "max_file_uploads" INI directive, which can be set to limit the number of file uploads per-request to 20 by default, to prevent possible DOS via temporary file exhaustion, identified by Bogdan Calin. (CVE-2009-4017, Ilia) * Added protection for $_SESSION from interrupt corruption and improved "session.save_path" check, identified by Stefan Esser. (CVE-2009-4143, Stas) * Fixed bug #49785 (insufficient input string validation of htmlspecialchars()). (CVE-2009-4142, Moriyoshi, hello at iwamot dot com) Key enhancements in PHP 5.2.12 include: * Fixed unnecessary invocation of setitimer when timeouts have been disabled. (Arvind Srinivasan) * Fixed crash in com_print_typeinfo when an invalid typelib is given. (Pierre) * Fixed crash in SQLiteDatabase::ArrayQuery() and SQLiteDatabase::SingleQuery() when calling using Reflection. (Felipe) * Fixed crash when instantiating PDORow and PDOStatement through Reflection. (Felipe) * Fixed memory leak in openssl_pkcs12_export_to_file(). (Felipe) * Fixed bug #50207 (segmentation fault when concatenating very large strings on 64bit linux). (Ilia) * Fixed bug #50162 (Memory leak when fetching timestamp column from Oracle database). (Felipe) * Fixed bug #50006 (Segfault caused by uksort()). (Felipe) * Fixed bug #50005 (Throwing through Reflection modified Exception object makes segmentation fault). (Felipe) * Fixed bug #49174 (crash when extending PDOStatement and trying to set queryString property). (Felipe) * Fixed bug #49098 (mysqli segfault on error). (Rasmus) * Over 50 other bug fixes.
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.75 2009/12/23 07:07:34 taca Exp $
|
|
|
|
PKGNAME= php-${PHP_BASE_VERS}
|
|
CATEGORIES= lang
|
|
HOMEPAGE= http://www.php.net/
|
|
COMMENT= PHP Hypertext Preprocessor version 5
|
|
|
|
TEST_TARGET= test
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_TOOLS+= gmake lex pkg-config
|
|
LIBTOOL_OVERRIDE= # empty
|
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS+= sapi
|
|
PKG_OPTIONS_GROUP.sapi= cgi fastcgi
|
|
PKG_SUGGESTED_OPTIONS+= cgi
|
|
|
|
.include "Makefile.php"
|
|
|
|
.if !empty(PKG_OPTIONS:Mcgi)
|
|
CONFIGURE_ARGS+= --enable-discard-path
|
|
CONFIGURE_ARGS+= --enable-force-cgi-redirect
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mfastcgi)
|
|
CONFIGURE_ARGS+= --enable-fastcgi
|
|
.endif
|
|
|
|
CGIDIR= ${PREFIX}/libexec/cgi-bin
|
|
EGDIR= ${PREFIX}/share/examples/php
|
|
MESSAGE_SUBST+= CGIDIR=${CGIDIR:Q}
|
|
|
|
CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
|
|
MAKE_ENV+= INSTALL_ROOT=${DESTDIR:Q}
|
|
|
|
CONF_FILES= ${EGDIR}/php.ini-recommended ${PKG_SYSCONFDIR}/php.ini
|
|
OWN_DIRS= ${PREFIX}/${PHP_EXTENSION_DIR}
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_MESSAGE.path= Fixing common paths.
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= configure php.ini-dist php.ini-recommended
|
|
SUBST_SED.path= -e 's,@CGIDIR@,${CGIDIR},g'
|
|
SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
INSTALLATION_DIRS+= ${CGIDIR}
|
|
|
|
# Make sure modules can link correctly
|
|
.if ${OPSYS} == "Darwin"
|
|
INSTALL_UNSTRIPPED= yes
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php \
|
|
${DESTDIR:Q}${PREFIX:Q}/bin/php
|
|
${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 \
|
|
${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1/php.1
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sapi/cgi/php-cgi \
|
|
${DESTDIR:Q}${CGIDIR:Q}/php
|
|
${INSTALL_DATA_DIR} ${DESTDIR:Q}${EGDIR:Q}
|
|
cd ${WRKSRC}; ${INSTALL_DATA} php.ini-dist php.ini-recommended \
|
|
${DESTDIR:Q}${EGDIR:Q}
|
|
${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/share/php
|
|
${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR:Q}${PREFIX:Q}/share/php
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|