Skip to content

Commit

Permalink
Initial import of php-zendopcache, version 7.0.4, into the NetBSD Pac…
Browse files Browse the repository at this point in the history
…kages

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"
  • Loading branch information
imil committed Mar 9, 2015
1 parent 2ebfa28 commit 9633f41
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
5 changes: 5 additions & 0 deletions www/php-zendopcache/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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.
9 changes: 9 additions & 0 deletions www/php-zendopcache/MESSAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
===========================================================================
$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.
===========================================================================
35 changes: 35 additions & 0 deletions www/php-zendopcache/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# $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= [email protected]
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"
2 changes: 2 additions & 0 deletions www/php-zendopcache/PLIST.extras
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST.extras,v 1.1 2015/03/09 13:33:18 imil Exp $
share/doc/${PKGBASE}/README
5 changes: 5 additions & 0 deletions www/php-zendopcache/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$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

0 comments on commit 9633f41

Please sign in to comment.