mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-17 13:55:35 +08:00
Compare commits
4 Commits
docs/ga
...
7a1d4a2cde
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a1d4a2cde | ||
|
|
82674bf3a2 | ||
|
|
d33cf4ab58 | ||
|
|
be576a93d3 |
@@ -756,18 +756,6 @@
|
|||||||
"apcu"
|
"apcu"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"snmp": {
|
|
||||||
"support": {
|
|
||||||
"Windows": "wip",
|
|
||||||
"BSD": "wip"
|
|
||||||
},
|
|
||||||
"type": "builtin",
|
|
||||||
"arg-type-unix": "with",
|
|
||||||
"arg-type-windows": "with",
|
|
||||||
"lib-depends": [
|
|
||||||
"net-snmp"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"soap": {
|
"soap": {
|
||||||
"support": {
|
"support": {
|
||||||
"BSD": "wip"
|
"BSD": "wip"
|
||||||
@@ -1000,14 +988,6 @@
|
|||||||
"type": "builtin",
|
"type": "builtin",
|
||||||
"build-with-php": true
|
"build-with-php": true
|
||||||
},
|
},
|
||||||
"trader": {
|
|
||||||
"support": {
|
|
||||||
"BSD": "wip",
|
|
||||||
"Windows": "wip"
|
|
||||||
},
|
|
||||||
"type": "external",
|
|
||||||
"source": "ext-trader"
|
|
||||||
},
|
|
||||||
"uuid": {
|
"uuid": {
|
||||||
"support": {
|
"support": {
|
||||||
"Windows": "wip",
|
"Windows": "wip",
|
||||||
|
|||||||
@@ -607,8 +607,8 @@
|
|||||||
},
|
},
|
||||||
"libxml2": {
|
"libxml2": {
|
||||||
"source": "libxml2",
|
"source": "libxml2",
|
||||||
"pkg-configs": [
|
"static-libs-unix": [
|
||||||
"libxml-2.0"
|
"libxml2.a"
|
||||||
],
|
],
|
||||||
"static-libs-windows": [
|
"static-libs-windows": [
|
||||||
"libxml2s.lib",
|
"libxml2s.lib",
|
||||||
@@ -697,17 +697,6 @@
|
|||||||
"libncurses.a"
|
"libncurses.a"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"net-snmp": {
|
|
||||||
"source": "net-snmp",
|
|
||||||
"pkg-configs": [
|
|
||||||
"netsnmp",
|
|
||||||
"netsnmp-agent"
|
|
||||||
],
|
|
||||||
"lib-depends": [
|
|
||||||
"openssl",
|
|
||||||
"zlib"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"nghttp2": {
|
"nghttp2": {
|
||||||
"source": "nghttp2",
|
"source": "nghttp2",
|
||||||
"static-libs-unix": [
|
"static-libs-unix": [
|
||||||
|
|||||||
@@ -233,16 +233,6 @@
|
|||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ext-trader": {
|
|
||||||
"type": "url",
|
|
||||||
"url": "https://pecl.php.net/get/trader",
|
|
||||||
"path": "php-src/ext/trader",
|
|
||||||
"filename": "trader.tgz",
|
|
||||||
"license": {
|
|
||||||
"type": "file",
|
|
||||||
"path": "LICENSE"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ext-uuid": {
|
"ext-uuid": {
|
||||||
"type": "url",
|
"type": "url",
|
||||||
"url": "https://pecl.php.net/get/uuid",
|
"url": "https://pecl.php.net/get/uuid",
|
||||||
@@ -820,14 +810,6 @@
|
|||||||
"path": "COPYING"
|
"path": "COPYING"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"net-snmp": {
|
|
||||||
"type": "ghtagtar",
|
|
||||||
"repo": "net-snmp/net-snmp",
|
|
||||||
"license": {
|
|
||||||
"type": "file",
|
|
||||||
"path": "COPYING"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nghttp2": {
|
"nghttp2": {
|
||||||
"type": "ghrel",
|
"type": "ghrel",
|
||||||
"repo": "nghttp2/nghttp2",
|
"repo": "nghttp2/nghttp2",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import sidebarEn from "./sidebar.en";
|
import sidebarEn from "./sidebar.en";
|
||||||
import sidebarZh from "./sidebar.zh";
|
import sidebarZh from "./sidebar.zh";
|
||||||
import sidebarJa from "./sidebar.ja";
|
|
||||||
|
|
||||||
|
|
||||||
// https://vitepress.dev/reference/site-config
|
// https://vitepress.dev/reference/site-config
|
||||||
@@ -62,19 +61,5 @@ export default {
|
|||||||
indexName: 'static-php docs',
|
indexName: 'static-php docs',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
head: [
|
|
||||||
[
|
|
||||||
'script',
|
|
||||||
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-0MBJ29BD7F' }
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'script',
|
|
||||||
{},
|
|
||||||
`window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
gtag('config', 'G-0MBJ29BD7F');`
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\extension;
|
|
||||||
|
|
||||||
use SPC\builder\Extension;
|
|
||||||
use SPC\store\FileSystem;
|
|
||||||
use SPC\util\CustomExt;
|
|
||||||
use SPC\util\PkgConfigUtil;
|
|
||||||
|
|
||||||
#[CustomExt('snmp')]
|
|
||||||
class snmp extends Extension
|
|
||||||
{
|
|
||||||
public function patchBeforeBuildconf(): bool
|
|
||||||
{
|
|
||||||
// Overwrite m4 config using newer PHP version
|
|
||||||
if ($this->builder->getPHPVersionID() < 80400) {
|
|
||||||
FileSystem::copy(ROOT_DIR . '/src/globals/extra/snmp-ext-config-old.m4', "{$this->source_dir}/config.m4");
|
|
||||||
}
|
|
||||||
$libs = implode(' ', PkgConfigUtil::getLibsArray('netsnmp'));
|
|
||||||
FileSystem::replaceFileStr(
|
|
||||||
"{$this->source_dir}/config.m4",
|
|
||||||
'PHP_EVAL_LIBLINE([$SNMP_LIBS], [SNMP_SHARED_LIBADD])',
|
|
||||||
"SNMP_LIBS=\"{$libs}\"\nPHP_EVAL_LIBLINE([\$SNMP_LIBS], [SNMP_SHARED_LIBADD])"
|
|
||||||
);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\linux\library;
|
|
||||||
|
|
||||||
class net_snmp extends LinuxLibraryBase
|
|
||||||
{
|
|
||||||
use \SPC\builder\unix\library\net_snmp;
|
|
||||||
|
|
||||||
public const NAME = 'net-snmp';
|
|
||||||
}
|
|
||||||
@@ -78,7 +78,7 @@ class openssl extends LinuxLibraryBase
|
|||||||
if (!str_contains($file = FileSystem::readFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc'), 'prefix=')) {
|
if (!str_contains($file = FileSystem::readFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc'), 'prefix=')) {
|
||||||
FileSystem::writeFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', 'prefix=' . BUILD_ROOT_PATH . "\n" . $file);
|
FileSystem::writeFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', 'prefix=' . BUILD_ROOT_PATH . "\n" . $file);
|
||||||
}
|
}
|
||||||
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', '/Libs.private:.*/m', 'Requires.private: zlib');
|
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', '/Libs.private:.*/m', 'Libs.private: ${libdir}/libz.a');
|
||||||
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/cmake/OpenSSL/OpenSSLConfig.cmake', '/set\(OPENSSL_LIBCRYPTO_DEPENDENCIES .*\)/m', 'set(OPENSSL_LIBCRYPTO_DEPENDENCIES "${OPENSSL_LIBRARY_DIR}/libz.a")');
|
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/cmake/OpenSSL/OpenSSLConfig.cmake', '/set\(OPENSSL_LIBCRYPTO_DEPENDENCIES .*\)/m', 'set(OPENSSL_LIBCRYPTO_DEPENDENCIES "${OPENSSL_LIBRARY_DIR}/libz.a")');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\macos\library;
|
|
||||||
|
|
||||||
class net_snmp extends MacOSLibraryBase
|
|
||||||
{
|
|
||||||
use \SPC\builder\unix\library\net_snmp;
|
|
||||||
|
|
||||||
public const NAME = 'net-snmp';
|
|
||||||
}
|
|
||||||
@@ -63,7 +63,7 @@ class openssl extends MacOSLibraryBase
|
|||||||
if (!str_contains($file = FileSystem::readFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc'), 'prefix=')) {
|
if (!str_contains($file = FileSystem::readFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc'), 'prefix=')) {
|
||||||
FileSystem::writeFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', 'prefix=' . BUILD_ROOT_PATH . "\n" . $file);
|
FileSystem::writeFile(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', 'prefix=' . BUILD_ROOT_PATH . "\n" . $file);
|
||||||
}
|
}
|
||||||
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', '/Libs.private:.*/m', 'Requires.private: zlib');
|
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/pkgconfig/libcrypto.pc', '/Libs.private:.*/m', 'Libs.private: ${libdir}/libz.a');
|
||||||
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/cmake/OpenSSL/OpenSSLConfig.cmake', '/set\(OPENSSL_LIBCRYPTO_DEPENDENCIES .*\)/m', 'set(OPENSSL_LIBCRYPTO_DEPENDENCIES "${OPENSSL_LIBRARY_DIR}/libz.a")');
|
FileSystem::replaceFileRegex(BUILD_LIB_PATH . '/cmake/OpenSSL/OpenSSLConfig.cmake', '/set\(OPENSSL_LIBCRYPTO_DEPENDENCIES .*\)/m', 'set(OPENSSL_LIBCRYPTO_DEPENDENCIES "${OPENSSL_LIBRARY_DIR}/libz.a")');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,49 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace SPC\builder\unix\library;
|
|
||||||
|
|
||||||
use SPC\store\FileSystem;
|
|
||||||
use SPC\util\executor\UnixAutoconfExecutor;
|
|
||||||
|
|
||||||
trait net_snmp
|
|
||||||
{
|
|
||||||
public function patchBeforeBuild(): bool
|
|
||||||
{
|
|
||||||
if (PHP_OS_FAMILY === 'Linux') {
|
|
||||||
FileSystem::replaceFileStr("{$this->source_dir}/configure", 'LIBS="-lssl ${OPENSSL_LIBS}"', 'LIBS="-lssl ${OPENSSL_LIBS} -lpthread -ldl"');
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function build(): void
|
|
||||||
{
|
|
||||||
// use --static for PKG_CONFIG
|
|
||||||
UnixAutoconfExecutor::create($this)
|
|
||||||
->setEnv(['PKG_CONFIG' => getenv('PKG_CONFIG') . ' --static'])
|
|
||||||
->configure(
|
|
||||||
'--disable-mibs',
|
|
||||||
'--without-nl',
|
|
||||||
'--disable-agent',
|
|
||||||
'--disable-applications',
|
|
||||||
'--disable-manuals',
|
|
||||||
'--disable-scripts',
|
|
||||||
'--disable-embedded-perl',
|
|
||||||
'--without-perl-modules',
|
|
||||||
'--with-out-mib-modules="if-mib host disman/event-mib ucd-snmp/diskio mibII"',
|
|
||||||
'--with-out-transports="Unix"',
|
|
||||||
'--with-mib-modules=""',
|
|
||||||
'--enable-mini-agent',
|
|
||||||
'--with-default-snmp-version="3"',
|
|
||||||
'--with-sys-contact="@@no.where"',
|
|
||||||
'--with-sys-location="Unknown"',
|
|
||||||
'--with-logfile="/var/log/snmpd.log"',
|
|
||||||
'--with-persistent-directory="/var/lib/net-snmp"',
|
|
||||||
'--with-openssl=' . BUILD_ROOT_PATH,
|
|
||||||
'--with-zlib=' . BUILD_ROOT_PATH,
|
|
||||||
)->make(with_install: 'installheaders installlibs install_pkgconfig');
|
|
||||||
$this->patchPkgconfPrefix();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -45,8 +45,8 @@ trait postgresql
|
|||||||
|
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies(true));
|
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies());
|
||||||
$spc = new SPCConfigUtil($this->builder, ['no_php' => true, 'libs_only_deps' => true]);
|
$spc = new SPCConfigUtil($this->getBuilder(), ['no_php' => true, 'libs_only_deps' => true]);
|
||||||
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs'));
|
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs'));
|
||||||
|
|
||||||
$env_vars = [
|
$env_vars = [
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class LinuxToolCheckList
|
|||||||
'tar', 'unzip', 'gzip', 'gcc', 'g++',
|
'tar', 'unzip', 'gzip', 'gcc', 'g++',
|
||||||
'bzip2', 'cmake', 'patch', 'which',
|
'bzip2', 'cmake', 'patch', 'which',
|
||||||
'xz', 'libtool', 'gettext-devel',
|
'xz', 'libtool', 'gettext-devel',
|
||||||
'patchelf', 'file',
|
'patchelf',
|
||||||
];
|
];
|
||||||
|
|
||||||
public const TOOLS_ARCH = [
|
public const TOOLS_ARCH = [
|
||||||
|
|||||||
@@ -115,12 +115,6 @@ class UnixAutoconfExecutor extends Executor
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setEnv(array $env): static
|
|
||||||
{
|
|
||||||
$this->shell->setEnv($env);
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function appendEnv(array $env): static
|
public function appendEnv(array $env): static
|
||||||
{
|
{
|
||||||
$this->shell->appendEnv($env);
|
$this->shell->appendEnv($env);
|
||||||
|
|||||||
@@ -1,92 +0,0 @@
|
|||||||
PHP_ARG_WITH([snmp],
|
|
||||||
[for SNMP support],
|
|
||||||
[AS_HELP_STRING([[--with-snmp[=DIR]]],
|
|
||||||
[Include SNMP support. Use PKG_CONFIG_PATH (or SNMP_CFLAGS and SNMP_LIBS)
|
|
||||||
environment variables, or alternatively the optional DIR argument to
|
|
||||||
customize where to look for the net-snmp-config utility of the NET-SNMP
|
|
||||||
library.])])
|
|
||||||
|
|
||||||
if test "$PHP_SNMP" != "no"; then
|
|
||||||
snmp_found=no
|
|
||||||
AS_VAR_IF([PHP_SNMP], [yes],
|
|
||||||
[PKG_CHECK_MODULES([SNMP], [netsnmp >= 5.3], [snmp_found=yes], [:])])
|
|
||||||
|
|
||||||
AS_VAR_IF([snmp_found], [no], [
|
|
||||||
AS_VAR_IF([PHP_SNMP], [yes],
|
|
||||||
[AC_PATH_PROG([SNMP_CONFIG], [net-snmp-config],, [/usr/local/bin:$PATH])],
|
|
||||||
[SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"])
|
|
||||||
|
|
||||||
AS_IF([test ! -x "$SNMP_CONFIG"],
|
|
||||||
[AC_MSG_ERROR(m4_text_wrap([
|
|
||||||
Could not find net-snmp-config binary. Please check your net-snmp
|
|
||||||
installation.
|
|
||||||
]))])
|
|
||||||
|
|
||||||
snmp_version=$($SNMP_CONFIG --version)
|
|
||||||
AS_VERSION_COMPARE([$snmp_version], [5.3],
|
|
||||||
[AC_MSG_ERROR(m4_text_wrap([
|
|
||||||
Net-SNMP version 5.3 or greater required (detected $snmp_version).
|
|
||||||
]))])
|
|
||||||
|
|
||||||
SNMP_PREFIX=$($SNMP_CONFIG --prefix)
|
|
||||||
SNMP_CFLAGS="-I${SNMP_PREFIX}/include"
|
|
||||||
SNMP_LIBS=$($SNMP_CONFIG --netsnmp-libs)
|
|
||||||
SNMP_LIBS="$SNMP_LIBS $($SNMP_CONFIG --external-libs)"
|
|
||||||
|
|
||||||
AS_IF([test -z "$SNMP_LIBS" || test -z "$SNMP_PREFIX"],
|
|
||||||
[AC_MSG_ERROR(m4_text_wrap([
|
|
||||||
Could not find the required paths. Please check your net-snmp
|
|
||||||
installation.
|
|
||||||
]))])
|
|
||||||
])
|
|
||||||
|
|
||||||
PHP_EVAL_INCLINE([$SNMP_CFLAGS])
|
|
||||||
PHP_EVAL_LIBLINE([$SNMP_LIBS], [SNMP_SHARED_LIBADD])
|
|
||||||
SNMP_LIBNAME=netsnmp
|
|
||||||
|
|
||||||
dnl Test build.
|
|
||||||
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [init_snmp],
|
|
||||||
[AC_DEFINE([HAVE_SNMP], [1],
|
|
||||||
[Define to 1 if the PHP extension 'snmp' is available.])],
|
|
||||||
[AC_MSG_FAILURE([SNMP sanity check failed.])],
|
|
||||||
[$SNMP_SHARED_LIBADD])
|
|
||||||
|
|
||||||
dnl Check whether shutdown_snmp_logging() exists.
|
|
||||||
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [shutdown_snmp_logging],
|
|
||||||
[AC_DEFINE([HAVE_SHUTDOWN_SNMP_LOGGING], [1],
|
|
||||||
[Define to 1 if SNMP library has the 'shutdown_snmp_logging' function.])],
|
|
||||||
[],
|
|
||||||
[$SNMP_SHARED_LIBADD])
|
|
||||||
|
|
||||||
CFLAGS_SAVE=$CFLAGS
|
|
||||||
LIBS_SAVE=$LIBS
|
|
||||||
CFLAGS="$CFLAGS $SNMP_CFLAGS"
|
|
||||||
LIBS="$LIBS $SNMP_LIBS"
|
|
||||||
|
|
||||||
AC_CHECK_DECL([usmHMAC192SHA256AuthProtocol],
|
|
||||||
[AC_DEFINE([HAVE_SNMP_SHA256], [1],
|
|
||||||
[Define to 1 if SNMP library has the 'usmHMAC192SHA256AuthProtocol'
|
|
||||||
array.])],
|
|
||||||
[],
|
|
||||||
[
|
|
||||||
#include <net-snmp/net-snmp-config.h>
|
|
||||||
#include <net-snmp/net-snmp-includes.h>
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_CHECK_DECL([usmHMAC384SHA512AuthProtocol],
|
|
||||||
[AC_DEFINE([HAVE_SNMP_SHA512], [1],
|
|
||||||
[Define to 1 if SNMP library has the 'usmHMAC384SHA512AuthProtocol'
|
|
||||||
array.])],
|
|
||||||
[],
|
|
||||||
[
|
|
||||||
#include <net-snmp/net-snmp-config.h>
|
|
||||||
#include <net-snmp/net-snmp-includes.h>
|
|
||||||
])
|
|
||||||
|
|
||||||
CFLAGS=$CFLAGS_SAVE
|
|
||||||
LIBS=$LIBS_SAVE
|
|
||||||
|
|
||||||
PHP_NEW_EXTENSION([snmp], [snmp.c], [$ext_shared])
|
|
||||||
PHP_ADD_EXTENSION_DEP(snmp, spl)
|
|
||||||
PHP_SUBST([SNMP_SHARED_LIBADD])
|
|
||||||
fi
|
|
||||||
@@ -23,15 +23,15 @@ $test_php_version = [
|
|||||||
|
|
||||||
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
|
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
|
||||||
$test_os = [
|
$test_os = [
|
||||||
'macos-15-intel', // bin/spc for x86_64
|
// 'macos-15-intel', // bin/spc for x86_64
|
||||||
'macos-15', // bin/spc for arm64
|
// 'macos-15', // bin/spc for arm64
|
||||||
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
|
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
|
||||||
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
|
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
|
||||||
'ubuntu-24.04', // bin/spc for x86_64
|
// 'ubuntu-24.04', // bin/spc for x86_64
|
||||||
'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
|
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
|
||||||
'ubuntu-24.04-arm', // bin/spc for arm64
|
// 'ubuntu-24.04-arm', // bin/spc for arm64
|
||||||
// 'windows-2022', // .\bin\spc.ps1
|
// 'windows-2022', // .\bin\spc.ps1
|
||||||
// 'windows-2025',
|
'windows-2025',
|
||||||
];
|
];
|
||||||
|
|
||||||
// whether enable thread safe
|
// whether enable thread safe
|
||||||
@@ -50,7 +50,7 @@ $prefer_pre_built = false;
|
|||||||
|
|
||||||
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
||||||
$extensions = match (PHP_OS_FAMILY) {
|
$extensions = match (PHP_OS_FAMILY) {
|
||||||
'Linux', 'Darwin' => 'trader',
|
'Linux', 'Darwin' => 'pdo_pgsql',
|
||||||
'Windows' => 'bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,ftp,iconv,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,session,shmop,simdjson,simplexml,soap,sockets,sqlite3,sqlsrv,ssh2,sysvshm,tokenizer,xml,xmlreader,xmlwriter,yaml,zip,zlib',
|
'Windows' => 'bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,ftp,iconv,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,session,shmop,simdjson,simplexml,soap,sockets,sqlite3,sqlsrv,ssh2,sysvshm,tokenizer,xml,xmlreader,xmlwriter,yaml,zip,zlib',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user