Mon Mar 9 13:33:18 2015 UTC ()
Initial import of php-zendopcache, version 7.0.4, into the NetBSD Packages
Collection.

This extention was previously known as ZendOptimizerPlus and has been renamed by
upstream.

Changes:

7.0.4
  Added function opcache_is_script_cached()
- Fix bug #67111 (Loop variables need to be freed for both "break" and
  "continue")
- Fix opcache.revalidate_freq per-request behavior
- Fixed bug #67215 (php-cgi work with opcache, may be segmentation fault happen)
- Fixed issue #183 (TMP_VAR is not only used once)
7.0.3
 - Fixed bug #66298 (ext/opcache/Optimizer/zend_optimizer.c has dos-style
^M as lineend)
- Added suggestion about opcache.revalidate_freq setting in development
  environmento
- Fixed Issue #140: "opcache.enable_file_override" doesn't respect
  "opcache.revalidate_freq"
- Fixed reavlidate_path=1 behavior to avoid caching of symlinks values.
- Fixed opcahce_reset() crash when opcache.protect_memory is set
- Fixed bug #66176 (Invalid constant substitution)
- Fixed bug #65559 (Opcache: cache not cleared if changes occur while running)
- Fixed compatibility with old PHP versions
- Fixed bug #65915 (Inconsistent results with require return value)
- Fixed issue #115 (path issue when using phar)
- Fixed issue #149 (Phar mount points not working with OPcache enabled)
- Fixed bug #65845 (Error when Zend Opcache Optimizer is fully enabled).
- Added function opcache_compile_file() to load PHP scripts into cache without
  execution.
- Fixed issue #135 (segfault in interned strings if initial memory is too low)
- Fixed bug #65665 (Exception not properly caught when opcache enabled)
- Fixed issue #128 (opcache_invalidate segmentation fault)
- Fixed bug #65510 (5.5.2 crashes in _get_zval_ptr_ptr_var)
- Fixed bug #65561 (Zend Opcache on Solaris 11 x86 needs ZEND_MM_ALIGNMENT=4)
- Replce ZEND_FETCH_* instructions with IS_CV if possible
- Added opcache.restrict_api configuration directive that may limit usage of
  OPcahce API functions only to patricular script(s)
- Added support for glob symbols in blacklist entries (?, *, **)
- Improved implementation of NOP removal pass from O(n^2) to O(n)
- Fixed bug #65338 (Enabling both php_opcache and php_wincache AVs on shutdown).
- Fixed bug #64827 Segfault in zval_mark_grey (zend_gc.c)
7.0.2
- Fixed issue #26 (added opcache_invalidate(string $filename [, bool
$force = false]) function)
- Fixed issue #74 (Allowed per request OPcache disabling)
- Fixed issue #76 (actually we don't need zend_shared_meory_block_header at all)
- Fixed issue #78 (incorrect file path validation)
- Fixed issue #79 (Optimization Problem/Bug)
- Fixed issue #82 (allow comments in blacklist file, lines started with ";")
- Fixed issue #91 (fix x64 fixed addresses)
- Fxied issue #92 (Compilation warnings)
- Fixed issue #97 (Use size_t instead of int to support a cache larger than 2G)
- Fixed bug (Avoid possible conditional jump depended on uninitialised value)
7.0.1
- Fixed Bug #64490 (add __FreeBSD_kernel__ to allowed FreeBSD defs)
- Fixed Bug #64482 (Opcodes for dynamic includes should not be cached)
- Fixed Bug #64353 (Built-in classes can be unavailable with dynamic includes
  and Optimizer+)
- Fixed compatibility with ext/phar
- Fixed Issue #58 (PHP-5.2 compatibility)
- Fixed Issue #57 (segfaults in drupal7)
- Fixed Issue #54 (PECL install adds extension= instead of zend_extension= to
  php.ini)-iii
- Allows exclusion of large files from being cached
- Save a stat() call by calling sapi_module.get_stat()
- Add optional flag to opcache_get_status()
- Separate "start_time" from "last_restart_time"


(imil)
diff -r0 -r1.1 pkgsrc/www/php-zendopcache/DESCR
diff -r0 -r1.1 pkgsrc/www/php-zendopcache/MESSAGE
diff -r0 -r1.1 pkgsrc/www/php-zendopcache/Makefile
diff -r0 -r1.1 pkgsrc/www/php-zendopcache/PLIST.extras
diff -r0 -r1.1 pkgsrc/www/php-zendopcache/distinfo

File Added: pkgsrc/www/php-zendopcache/Attic/DESCR
The Zend OPcache provides faster PHP execution through opcode caching and
optimization. It improves PHP performance by storing precompiled script
bytecode in the shared memory. This eliminates the stages of reading code from
the disk and compiling it on future access. In addition, it applies a few
bytecode optimization patterns that make code execution faster.

File Added: pkgsrc/www/php-zendopcache/Attic/MESSAGE
===========================================================================
$NetBSD: MESSAGE,v 1.1 2015/03/09 13:33:18 imil Exp $

To enable this module, add the following to ${PKG_SYSCONFDIR}/php.ini:

    zend_extension=${PREFIX}/${PHP_EXTENSION_DIR}/${MODNAME}.so

Then restart your ${PKG_PHP}-enabled HTTP server to load this module.
===========================================================================

File Added: pkgsrc/www/php-zendopcache/Attic/Makefile
# $NetBSD: Makefile,v 1.1 2015/03/09 13:33:18 imil Exp $

MODNAME=	zendopcache
PKGMODNAME=	opcache
CATEGORIES+=	www
PECL_VERSION=	7.0.4
PECL_LEGACY_VERSION_SCHEME=	yes

HOMEPAGE=	https://github.com/zend-dev/ZendOptimizerPlus
MAINTAINER=	imil@NetBSD.org
COMMENT=	Zend opcode cache and optimizer for PHP
LICENSE=	php

SUPERSEDES=	${PHP_PKG_PREFIX}-zendoptimizerplus-[0-9]*
PREV_PKGPATH=	www/zendoptimizerplus

REPLACE_BASH=	configure # cheaper than patching configure
USE_TOOLS+=	bash

PLIST_SRC+=		${.CURDIR}/PLIST.extras
PLIST_SUBST+=		PKGBASE=${PKGBASE:Q}

DOCDIR=			${PREFIX}/share/doc/${PKGBASE}

INSTALLATION_DIRS=	${DOCDIR}

.include "../../lang/php/ext.mk"

# this is not an usual extension, override MESSAGE.module
MESSAGE_SRC=		${.CURDIR}/MESSAGE

post-install:
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}

.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/www/php-zendopcache/Attic/PLIST.extras
@comment $NetBSD: PLIST.extras,v 1.1 2015/03/09 13:33:18 imil Exp $
share/doc/${PKGBASE}/README

File Added: pkgsrc/www/php-zendopcache/Attic/distinfo
$NetBSD: distinfo,v 1.1 2015/03/09 13:33:18 imil Exp $

SHA1 (php-zendopcache/zendopcache-7.0.4.tgz) = 42e67f02d76113f9e9ec947aea49d36a95642d3c
RMD160 (php-zendopcache/zendopcache-7.0.4.tgz) = 84c46a4bac9cefb31a5be91e5524d16d68ed0553
Size (php-zendopcache/zendopcache-7.0.4.tgz) = 96340 bytes