head 1.25; access; symbols pkgsrc-2023Q4:1.25.0.2 pkgsrc-2023Q4-base:1.25 pkgsrc-2023Q3:1.22.0.8 pkgsrc-2023Q3-base:1.22 pkgsrc-2023Q2:1.22.0.6 pkgsrc-2023Q2-base:1.22 pkgsrc-2023Q1:1.22.0.4 pkgsrc-2023Q1-base:1.22 pkgsrc-2022Q4:1.22.0.2 pkgsrc-2022Q4-base:1.22 pkgsrc-2022Q3:1.21.0.8 pkgsrc-2022Q3-base:1.21 pkgsrc-2022Q2:1.21.0.6 pkgsrc-2022Q2-base:1.21 pkgsrc-2022Q1:1.21.0.4 pkgsrc-2022Q1-base:1.21 pkgsrc-2021Q4:1.21.0.2 pkgsrc-2021Q4-base:1.21 pkgsrc-2021Q3:1.19.0.6 pkgsrc-2021Q3-base:1.19 pkgsrc-2021Q2:1.19.0.4 pkgsrc-2021Q2-base:1.19 pkgsrc-2021Q1:1.19.0.2 pkgsrc-2021Q1-base:1.19 pkgsrc-2020Q4:1.17.0.10 pkgsrc-2020Q4-base:1.17 pkgsrc-2020Q3:1.17.0.8 pkgsrc-2020Q3-base:1.17 pkgsrc-2020Q2:1.17.0.6 pkgsrc-2020Q2-base:1.17 pkgsrc-2020Q1:1.17.0.2 pkgsrc-2020Q1-base:1.17 pkgsrc-2019Q4:1.17.0.4 pkgsrc-2019Q4-base:1.17 pkgsrc-2019Q3:1.13.0.6 pkgsrc-2019Q3-base:1.13 pkgsrc-2019Q2:1.13.0.4 pkgsrc-2019Q2-base:1.13 pkgsrc-2019Q1:1.13.0.2 pkgsrc-2019Q1-base:1.13 pkgsrc-2018Q4:1.11.0.8 pkgsrc-2018Q4-base:1.11 pkgsrc-2018Q3:1.11.0.6 pkgsrc-2018Q3-base:1.11 pkgsrc-2018Q2:1.11.0.4 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.2 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.9.0.2 pkgsrc-2017Q4-base:1.9 pkgsrc-2017Q3:1.8.0.8 pkgsrc-2017Q3-base:1.8 pkgsrc-2017Q2:1.8.0.4 pkgsrc-2017Q2-base:1.8 pkgsrc-2017Q1:1.8.0.2 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.7.0.2 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.5.0.2 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.2.0.6 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.4 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.1.0.6 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.4 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.2 pkgsrc-2015Q1-base:1.1; locks; strict; comment @# @; 1.25 date 2023.12.06.01.04.36; author gdt; state Exp; branches; next 1.24; commitid 4PTdPv6kvpmEdlPE; 1.24 date 2023.12.04.01.34.54; author gdt; state Exp; branches; next 1.23; commitid uq5iITfCfDBms5PE; 1.23 date 2023.11.30.16.31.21; author taca; state Exp; branches; next 1.22; commitid tZ31jQ4wKoHSxEOE; 1.22 date 2022.10.06.14.28.43; author taca; state Exp; branches; next 1.21; commitid wszce30p94vymFWD; 1.21 date 2021.12.12.15.25.53; author taca; state Exp; branches; next 1.20; commitid 2jOvuaMMmlNjgnkD; 1.20 date 2021.09.28.13.22.27; author manu; state Exp; branches; next 1.19; commitid 53vc7zZc7RNSYIaD; 1.19 date 2021.03.07.14.47.58; author taca; state Exp; branches; next 1.18; commitid EHu107Dj8eMh3oKC; 1.18 date 2021.01.03.07.40.24; author taca; state Exp; branches; next 1.17; commitid S2HiKuCNU1baIfCC; 1.17 date 2019.12.16.16.30.14; author taca; state Exp; branches; next 1.16; commitid XCh7WbP8oEE6ZWOB; 1.16 date 2019.12.15.18.17.21; author taca; state Exp; branches; next 1.15; commitid tBrrw2TOpigIBPOB; 1.15 date 2019.11.02.12.54.38; author rillig; state Exp; branches; next 1.14; commitid 4sCtzx36bzEQchJB; 1.14 date 2019.10.22.08.25.59; author taca; state Exp; branches; next 1.13; commitid WcVYNovVfEdD4QHB; 1.13 date 2019.02.05.18.58.02; author bsiegert; state Exp; branches; next 1.12; commitid YQsgQp839V95TBaB; 1.12 date 2019.01.14.13.06.11; author taca; state Exp; branches; next 1.11; commitid IBgso5XuNzmzEK7B; 1.11 date 2018.02.16.06.58.53; author jdolecek; state Exp; branches; next 1.10; commitid eWyHzeIrGGcfi3rA; 1.10 date 2018.01.10.10.05.17; author jdolecek; state Exp; branches; next 1.9; commitid Te6rjyqiLgtlvjmA; 1.9 date 2017.11.15.09.15.50; author jdolecek; state Exp; branches; next 1.8; commitid nAEcnaLD2f2C27fA; 1.8 date 2017.02.07.21.00.35; author roy; state Exp; branches; next 1.7; commitid 1dc7fCUaSUHrY3Fz; 1.7 date 2016.11.05.14.37.21; author jdolecek; state Exp; branches; next 1.6; commitid NNqnOHalOluoSWsz; 1.6 date 2016.10.14.14.48.10; author jdolecek; state Exp; branches; next 1.5; commitid DjzN1Z2ubLsTD7qz; 1.5 date 2016.08.19.09.34.46; author jdolecek; state Exp; branches; next 1.4; commitid lahhk4AMdfp1ITiz; 1.4 date 2016.08.11.22.54.16; author jdolecek; state Exp; branches; next 1.3; commitid Hh91dkUJ1mKMnWhz; 1.3 date 2016.07.26.09.22.40; author jdolecek; state Exp; branches; next 1.2; commitid rgwgFgTpTcenpOfz; 1.2 date 2015.12.19.14.27.15; author taca; state Exp; branches; next 1.1; commitid DMd0ulpW9fGwazNy; 1.1 date 2015.02.01.08.11.20; author taca; state Exp; branches; next ; commitid bvd04mEPR8aiph8y; desc @@ 1.25 log @www/php-apcu: Patch more printf specifiers caught on earmv7hf-el - Cast time_t to intmax_t. - Upstream zend actually defines PRI macros for zend_long; use them. - Include upstream bug report URL. @ text @# $NetBSD: Makefile,v 1.24 2023/12/04 01:34:54 gdt Exp $ MODNAME= apcu PECL_VERSION= 5.1.23 PKGREVISION= 2 CATEGORIES+= sysutils MAINTAINER= pkgsrc-users@@NetBSD.org COMMENT= APCu - APC User Cache LICENSE= php PHP_VERSIONS_INCOMPATIBLE= 56 GNU_CONFIGURE_STRICT= no # --with-pcre-dir is added for all PHP extensions CONFIGURE_ARGS+= --enable-${MODNAME} # Use spinlocks if available # XXX Default is fnctl, and implentation leaks # file descriptors on apachectl graceful .if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == x86_64 CONFIGURE_ARGS+= --enable-apcu-spinlocks .endif PLIST_SRC+= ${.CURDIR}/PLIST.extras PLIST_SUBST+= PKGBASE=${PKGBASE} DOCDIR= ${PREFIX}/share/doc/${PKGBASE} INSTALLATION_DIRS= ${DOCDIR} post-install: cd ${WRKSRC} && ${MAKE} INSTALL_ROOT="${DESTDIR}" install-headers .include "../../lang/php/ext.mk" .include "../../mk/bsd.pkg.mk" @ 1.24 log @www/php-apcu: Fix type error in printf The code printed key_t with %d. POSIX requires only an arithmetic type, and on NetBSD, it's long. Cast to intmax_t and use %jd to work around. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2023/11/30 16:31:21 taca Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.23 log @www/php-apcu: update to 5.1.23 5.1.23 (2023-11-11) * Revert use of monotonic clock for TTL (#451) * Fix a crash when serializing packed arrays (e.g. lists) in PHP 8.2+ with `apc.serializer=default`. * Reduce memory usage when serializing packed arrays (e.g. lists) in PHP 8.2+ with `apc.serializer=default`. * Speed up serializing arrays with `apc.serializer=default`. * Reduce memory usage when unserializing instances of the empty array in PHP 7.3+. * Removed no longer working apcue extension. * Increased limit on maximum number of slots. * Made tests compatible with PHP 8.3. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2022/10/06 14:28:43 taca Exp $ d5 1 @ 1.22 log @www/php-apcu: update to 5.1.22 pkgsrc change: * Allow build with enabling PKG_OPTIONS: maintainer-zts. * Remove trailing whitespace. 5.1.22 (2022-09-19) - PHP 8.2 compatibility - PHP 8.1 compatibility in apc.php - Fix --enable-apcu-rwlocks configure option - Enable transparent huge pages for mmap memory - Use monotonic clock for TTL @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2021/12/12 15:25:53 taca Exp $ d4 1 a4 1 PECL_VERSION= 5.1.22 @ 1.21 log @www/php-apcu: update to 5.1.21 5.1.21 (2021-10-07) - Fixed compatibility with PHP 8.1 by adding return types to APCUIterator. - APCUIterator::current() and ::key() can no longer be called on an invalid iterator. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2021/09/28 13:22:27 manu Exp $ d4 1 a4 1 PECL_VERSION= 5.1.21 d17 1 a17 1 # XXX Default is fnctl, and implentation leaks @ 1.20 log @Use spinlocks instead of default fcntl locks This is only available on x86. Note that default fcntl implementation is not only slower, it also leaks file descriptor on apachectl graceful. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2021/03/07 14:47:58 taca Exp $ d4 1 a4 2 PECL_VERSION= 5.1.20 PKGREVISION= 1 a31 1 ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR} @ 1.19 log @www/php-apcu: update to 5.1.20 www/php-apcu: update to 5.1.20 5.1.20 (2021-03-04) - Fix deadlocks when other apcu_* functions are used inside apcu_entry(). It should now be safe to use any functions inside the apcu_entry() callback. - Fix division by zero exception in apc.php. - Fix handling of references in PHP 8 if "default" serializer is used (which is not the default). - Fix string reuse handling if "default" serializer is used (which is not the default). - Check for failures when acquiring read locks to report problems earlier (write locks were already checked previously). - Adjust tests for current PHP 8.1 development branch. - Remove *_api.h headers. Use apc_cache.h instead of apc_cache_api.h etc. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2021/01/03 07:40:24 taca Exp $ d5 1 d17 8 @ 1.18 log @www/php-apcu: update to 5.1.19 pkgsrc change: Switch to use PHP_VERSIONS_INCOMPATIBLE. 5.1.19 (2020-10-05) - Fixed apcu_store() with integer keys (#388). - Made apc.use_request_time=0 the default (#391). - Made apcu compatible with PHP 8.0. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2019/12/16 16:30:14 taca Exp $ d4 1 a4 1 PECL_VERSION= 5.1.19 @ 1.17 log @Drop php71 support Drop php71 support mechanically. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2019/12/15 18:17:21 taca Exp $ d4 1 a4 1 PECL_VERSION= 5.1.18 d11 1 a11 1 PHP_VERSIONS_ACCEPTED= 72 73 74 @ 1.16 log @www/php-apcu: update to 5.1.18 Update php-apcu to 5.1.18. o pkgsrc change: allow build with php74. 5.1.18 (2019-10-28) - Implement apcu_inc() and apcu_dec() using atomic operations. This means that these functions no longer have to acquire a write lock. These functions will now wraparound on overflow, instead of saturating to a floating point value. - Make table header in apc.php sticky. - Fix compile warnings related to mktemp() usage. - Fix compatibility with PHP 8.0. - Fix required number of arguments for apcu_store() returned by Reflection. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2019/11/02 12:54:38 rillig Exp $ d11 1 a11 1 PHP_VERSIONS_ACCEPTED= 71 72 73 74 @ 1.15 log @www/php-apcu: fix pkglint warnings and configure options @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2019/10/22 08:25:59 taca Exp $ d4 1 a4 1 PECL_VERSION= 5.1.17 d11 1 a11 1 PHP_VERSIONS_ACCEPTED= 71 72 73 @ 1.14 log @www/php-apcu: update to 5.1.17 Update php-apcu to 5.1.17. 5.1.17 - Fixed compatibility with PHP 7.4 and PHP 8.0. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2019/02/05 18:58:02 bsiegert Exp $ d13 1 d17 1 a17 1 PLIST_SUBST+= PKGBASE=${PKGBASE:Q} @ 1.13 log @Update php-apcu to 5.1.16. From Michael Moll via Github pull request. Closes NetBSD/pkgsrc#42. 5.1.16 - Fix build on OSX. 5.1.15 - Restore apc.serializer=php as the default, as the "default" serializer still/again has issues. - Fix possible issues in persistence of arrays with the "default" serializer. - Attempt to reduce shared memory fragementation. 5.1.14 - Fixed GH #347: Disable slam defense by default. - Fix potential issue with destruction of locks. This does not affect Linux, but might affect Windows and BSD. - Use mutex instead of rwlock for shared memory allocator (if pthreads mutex available). - Require only read-lock for apcu_cas(), by using atomic compare-and-swap. 5.1.13 - Reimplement persistence logic using precise allocation rather than memory pools. This reduces memory usage of cache entries, especially for small values, and improves performance of persisting and unpersisting values. - Fixed GH #335: Stampede protection is broken. - Fixed GH #328: Segfault in apcu_key_info() if APCu is disabled. - Generally make the behavior of functions if APCu is disabled more consistent. - Fixed PHP bug #72980: Empty strings are now consistently allowed as cache keys. - Optimized apcu_key_info() and apcu_cache_info() by using interned strings. - Fix build against PHP master (PHP 7.4). - Many changes to internal C APIs. 5.1.12 - gh#307: Fix 'Timout' sort option (apc.php). - gh#308: Keep search parameter on cache entry detail link (apc.php). - Fix --enable-apcu-clear-signal support. - Show entries with expired global TTL in APCuIterator. - Respect TTL when calculating APCuIterator totals. - The per-entry TTL now always takes precedence over the global TTL. - The global TTL is now always relative to the access time. - apcu_inc() and apcu_dec() no longer update hard-expired entries. Instead a new entry is created. - Added optional $ttl argument to apcu_inc() and apcu_dec(), used when creating a new entry. - PHP bug #76145: Fix use of APCu inside Serializer::(un)serialize(). - gh#304: If apcu_cas() is used on a non-existing entry, don't insert it. - gh#295: Improve APCuIterator performance by using PCRE JIT and preallocating key strings. - Reduce the memory overhead of cache entries. - Prevent potential memory corruption in the cache slam defense implementation. - Ensure cache entry references are released on bailout during unserialization. - Make support for atomic operations a hard requirement for building APCu. - Check write-lock acquisition for failure, to help debugging deadlock situations. - Make sure apcu_inc/dec are atomic when working on a non-existing entry. - Many changes to internal C APIs. 5.1.11 - fix gh#246 apcu_entry hangs - fix gh#259 deadlock in apcu_store - fix gh#281 undefined variable in apc.php - fix handling of fatal errors in apcu_entry - check string lengths when looking up keys - many internal C APIs changed @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2019/01/14 13:06:11 taca Exp $ d4 1 a4 1 PECL_VERSION= 5.1.16 @ 1.12 log @Drop support for php70 Drop support for php70 before remove it from pkgsrc. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2018/02/16 06:58:53 jdolecek Exp $ d4 1 a4 1 PECL_VERSION= 5.1.10 d11 1 a11 1 PHP_VERSIONS_ACCEPTED= 71 72 @ 1.11 log @Update php-apcu to 5.1.10 - small bugfixes Changes since 5.1.9: - fix gh#247 when a NUL char is used as key, apcu_fetch(array) truncates the key - fix gh#248 apcu_fetch may return values causing zend_mm_corruption or segfaults when custom serializer is used - fix gh#260 apcu.serializer=default results in segfault - fix gh#274 non-portable shell == in config.m4 - fix crash when passing bad array to apcu_delete - improve fix gh#266 refcounting errors in APCIterator - fix for PHP 7.3 compatibility @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2018/01/10 10:05:17 jdolecek Exp $ d11 1 a11 1 PHP_VERSIONS_ACCEPTED= 70 71 72 @ 1.10 log @Update php-apcu to 5.1.9. Small bugfixes only. Changes since 5.1.8: - fix gh#234 mmap disabled when configure is called with --enable-apcu-mmap - fix gh#226 Warning: apcu_fetch(): apc_fetch() expects a string or array of strings. - mitigate gh#223 Fatal error when starting php on windows - add support for PCRE2 in 7.3 - use row formatting for information in phpinfo() tables - set IS_STR_PERSISTENT so refcounting failures are reported by -DRC_DEBUG=1 - fix gh#266 refcounting errors in APCIterator @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2017/11/15 09:15:50 jdolecek Exp $ d4 1 a4 1 PECL_VERSION= 5.1.9 @ 1.9 log @Accept also PHP 7.2 for this module package @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2017/02/07 21:00:35 roy Exp $ d4 1 a4 1 PECL_VERSION= 5.1.8 @ 1.8 log @Update to apcu-5.1.8 with the following changes: - fix gh#207 Segmentation fault in apc_sma_api_free() - fix gh#221 memory leak - update to apc dashboard @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2016/11/05 14:37:21 jdolecek Exp $ d11 1 a11 1 PHP_VERSIONS_ACCEPTED= 70 71 @ 1.7 log @Update php-apcu to 5.1.7 Changes: - fixes gh#19: hung apaches on pthread wrlocks - fixes gh#203: segfaults in bailout / longjmp @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2016/10/14 14:48:10 jdolecek Exp $ d4 1 a4 1 PECL_VERSION= 5.1.7 @ 1.6 log @Update php-apcu to version 5.1.6 Changes: - fixes gh#19: Hung apaches on pthread wrlocks - fixes gh#188: Fix Segfault in ZTS build when locking (Tyson Andre) - fixes gh#194: apcu_entry ttl not working - fixes gh#189: SegFault in apc_copy_zval - fixes gh#185: zend_mm_heap corrupted - fixes gh#190: memory leak/failed check for duplicates @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2016/08/19 09:34:46 jdolecek Exp $ d4 1 a4 1 PECL_VERSION= 5.1.6 @ 1.5 log @add patch for apcu memory allocation failure handling, submitted as https://bugs.php.net/bug.php?id=72801 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2016/08/11 22:54:16 jdolecek Exp $ d4 1 a4 2 PECL_VERSION= 5.1.5 PKGREVISION= 1 @ 1.4 log @php apcu 5.x (and php apcu_bc) is only compatible with 7.x; adjust PHP_VERSIONS_ACCEPTED accordingly add php-apcu4 (as copy what we used to have as php-apcu before upgrade to 5.1.5), and mark with PHP_VERSIONS_ACCEPTED 55 56 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2016/07/26 09:22:40 jdolecek Exp $ d5 1 @ 1.3 log @Update php-apcu to 5.1.5 Changes: - PHP 7 compatibility - provide APC compatibility in "apc" optional extension - move APCIterator to APC compatibility extension - add APCuIterator without cache argument - drop apcu_bin_* functions - add apcu_entry(key, callback, ttl) function - fix race on refcount of entry when using rwlocks (or on windows) NOTE: apc-compatible interfaces moved into separate module @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2015/12/19 14:27:15 taca Exp $ d11 2 @ 1.2 log @Restrict PHP_VERSIONS_ACCEPTED to 55 and 56. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2015/02/01 08:11:20 taca Exp $ d4 1 a4 1 PECL_VERSION= 4.0.7 a10 2 PHP_VERSIONS_ACCEPTED= 55 56 d22 1 @ 1.1 log @Add php-apc 4.0.7. APCu is userland caching: APC stripped of opcode caching in preparation for the deployment of Zend Optimizer+ as the primary solution to opcode caching in future versions of PHP. APCu has a revised and simplified codebase, by the time the PECL release is available, every part of APCu being used will have received review and where necessary or appropriate, changes. Simplifying and documenting the API of APCu completely removes the barrier to maintenance and development of APCu in the future, and additionally allows us to make optimizations not possible previously because of APC's inherent complexity. APCu only supports userland caching (and dumping) of variables, providing an upgrade path for the future. When O+ takes over, many will be tempted to use 3rd party solutions to userland caching, possibly even distributed solutions; this would be a grave error. The tried and tested APC codebase provides far superior support for local storage of PHP variables. @ text @d1 1 a1 1 # $NetBSD$ d11 2 @