Skip to content

Commit aa184db

Browse files
committed
Restore apc_arginfo.h header
This is a reexport of php_apc_legacy_arginfo.h for use by apcu_bc. It intentionally fails the build on PHP 8, as apcu_bc will not be supported on PHP 8.
1 parent 35dc2c6 commit aa184db

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

apc_arginfo.h

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#if PHP_VERSION_ID < 80000
2+
# include "php_apc_legacy_arginfo.h"
3+
#else
4+
# error Not supported on PHP >= 8.0
5+
#endif

config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ if test "$PHP_APCU" != "no"; then
243243
PHP_SUBST(APCU_SHARED_LIBADD)
244244
PHP_SUBST(APCU_CFLAGS)
245245
PHP_SUBST(PHP_LDFLAGS)
246-
PHP_INSTALL_HEADERS(ext/apcu, [php_apc.h apc.h apc_api.h apc_cache.h apc_cache_api.h apc_globals.h apc_iterator.h apc_lock.h apc_mutex.h apc_lock_api.h apc_sma.h apc_sma_api.h apc_serializer.h apc_stack.h])
246+
PHP_INSTALL_HEADERS(ext/apcu, [php_apc.h apc.h apc_api.h apc_cache.h apc_cache_api.h apc_globals.h apc_iterator.h apc_lock.h apc_mutex.h apc_lock_api.h apc_sma.h apc_sma_api.h apc_serializer.h apc_stack.h apc_arginfo.h php_apc_legacy_arginfo.h])
247247
AC_DEFINE(HAVE_APCU, 1, [ ])
248248
fi
249249

config.w32

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if(PHP_APCU != 'no')
2424
AC_DEFINE('APC_SRWLOCK_KERNEL', 1);
2525
AC_DEFINE('HAVE_APCU', 1);
2626
ADD_FLAG('CFLAGS_APCU', '/D WIN32_ONLY_COMPILER=1 /DAPC_SRWLOCK_KERNEL=1');
27-
PHP_INSTALL_HEADERS("ext/apcu", "php_apc.h apc.h apc_api.h apc_cache.h apc_cache_api.h apc_globals.h apc_iterator.h apc_lock.h apc_mutex.h apc_lock_api.h apc_sma.h apc_sma_api.h apc_serializer.h apc_stack.h apc_windows_srwlock_kernel.h");
27+
PHP_INSTALL_HEADERS("ext/apcu", "php_apc.h apc.h apc_api.h apc_cache.h apc_cache_api.h apc_globals.h apc_iterator.h apc_lock.h apc_mutex.h apc_lock_api.h apc_sma.h apc_sma_api.h apc_serializer.h apc_stack.h apc_windows_srwlock_kernel.h apc_arginfo.h php_apc_legacy_arginfo.h");
2828

2929
EXTENSION('apcu', apc_sources, PHP_APCU_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
3030
}

0 commit comments

Comments
 (0)