-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #683 from jingjingxyk/experiment-feature
Experiment feature 同步功能代码
- Loading branch information
Showing
67 changed files
with
544 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,60 @@ | ||
# support extensions (x64) | ||
|
||
| extension name | linux6 | macos | windows(cygwin) | default enabled | | ||
|----------------|--------|-------|-----------------|-----------------| | ||
| curl | ✅ | ✅ | ✅ | ✅ | | ||
| iconv | ✅ | ✅ | ✅ | ✅ | | ||
| bcmath | ✅ | ✅ | ✅ | ✅ | | ||
| pcntl | ✅ | ✅ | ✅ | ✅ | | ||
| filter | ✅ | ✅ | ✅ | ✅ | | ||
| session | ✅ | ✅ | ✅ | ✅ | | ||
| tokenizer | ✅ | ✅ | ✅ | ✅ | | ||
| mbstring | ✅ | ✅ | ✅ | ✅ | | ||
| ctype | ✅ | ✅ | ✅ | ✅ | | ||
| zlib | ✅ | ✅ | ✅ | ✅ | | ||
| zip | ✅ | ✅ | ✅ | ✅ | | ||
| posix | ✅ | ✅ | ✅ | ✅ | | ||
| sockets | ✅ | ✅ | ✅ | ✅ | | ||
| pdo | ✅ | ✅ | ✅ | ✅ | | ||
| sqlite3 | ✅ | ✅ | ✅ | ✅ | | ||
| phar | ✅ | ✅ | ✅ | ✅ | | ||
| mysqlnd | ✅ | ✅ | ✅ | ✅ | | ||
| mysqli | ✅ | ✅ | ✅ | ✅ | | ||
| intl | ✅ | ✅ | ✅ | ✅ | | ||
| fileinfo | ✅ | ✅ | ✅ | ✅ | | ||
| pdo_mysql | ✅ | ✅ | ✅ | ✅ | | ||
| soap | ✅ | ✅ | ✅ | ✅ | | ||
| xsl | ✅ | ✅ | ✅ | ✅ | | ||
| gmp | ✅ | ✅ | ✅ | ✅ | | ||
| exif | ✅ | ✅ | ✅ | ✅ | | ||
| sodium | ✅ | ✅ | ✅ | ✅ | | ||
| openssl | ✅ | ✅ | ✅ | ✅ | | ||
| readline | ✅ | ✅ | ✅ | ✅ | | ||
| libxml | ✅ | ✅ | ✅ | ✅ | | ||
| xml | ✅ | ✅ | ✅ | ✅ | | ||
| xmlreader | ✅ | ✅ | ✅ | ✅ | | ||
| xmlwriter | ✅ | ✅ | ✅ | ✅ | | ||
| dom | ✅ | ✅ | ✅ | ✅ | | ||
| simplexml | ✅ | ✅ | ✅ | ✅ | | ||
| redis | ✅ | ✅ | ✅ | ✅ | | ||
| yaml | ✅ | ✅ | ✅ | ✅ | | ||
| imagick | ✅ | ✅ | ✅ | ✅ | | ||
| gd | ✅ | ✅ | ✅ | ✅ | | ||
| opcache | ✅ | ✅ | ✅ | ✅ | | ||
| swoole | ✅ | ✅ | ✅ | ✅ | | ||
| ssh2 | ✅ | ✅ | ❌ | ❌ | | ||
| apcu | ✅ | ✅ | ❌ | ❌ | | ||
| ds | ✅ | ✅ | ✅ | ❌ | | ||
| inotify | ✅ | ❌ | ❌ | ❌ | | ||
| protobuf | ❌ | ❌ | ❌ | ❌ | | ||
| uuid | ✅ | ✅ | ❌ | ❌ | | ||
| mailparse | ✅ | ✅ | ❌ | ❌ | | ||
| mongodb | ✅ | ✅ | ❌ | ✅ | | ||
| extension name | linux | macos | windows(cygwin) | default enabled | | ||
|----------------|-------|-------|-----------------|-----------------| | ||
| curl | ✅ | ✅ | ✅ | ✅ | | ||
| iconv | ✅ | ✅ | ✅ | ✅ | | ||
| bcmath | ✅ | ✅ | ✅ | ✅ | | ||
| pcntl | ✅ | ✅ | ✅ | ✅ | | ||
| filter | ✅ | ✅ | ✅ | ✅ | | ||
| session | ✅ | ✅ | ✅ | ✅ | | ||
| tokenizer | ✅ | ✅ | ✅ | ✅ | | ||
| mbstring | ✅ | ✅ | ✅ | ✅ | | ||
| ctype | ✅ | ✅ | ✅ | ✅ | | ||
| zlib | ✅ | ✅ | ✅ | ✅ | | ||
| zip | ✅ | ✅ | ✅ | ✅ | | ||
| posix | ✅ | ✅ | ✅ | ✅ | | ||
| sockets | ✅ | ✅ | ✅ | ✅ | | ||
| pdo | ✅ | ✅ | ✅ | ✅ | | ||
| sqlite3 | ✅ | ✅ | ✅ | ✅ | | ||
| phar | ✅ | ✅ | ✅ | ✅ | | ||
| mysqlnd | ✅ | ✅ | ✅ | ✅ | | ||
| mysqli | ✅ | ✅ | ✅ | ✅ | | ||
| intl | ✅ | ✅ | ✅ | ✅ | | ||
| fileinfo | ✅ | ✅ | ✅ | ✅ | | ||
| pdo_mysql | ✅ | ✅ | ✅ | ✅ | | ||
| soap | ✅ | ✅ | ✅ | ✅ | | ||
| xsl | ✅ | ✅ | ✅ | ✅ | | ||
| gmp | ✅ | ✅ | ✅ | ✅ | | ||
| exif | ✅ | ✅ | ✅ | ✅ | | ||
| sodium | ✅ | ✅ | ✅ | ✅ | | ||
| openssl | ✅ | ✅ | ✅ | ✅ | | ||
| readline | ✅ | ✅ | ✅ | ✅ | | ||
| libxml | ✅ | ✅ | ✅ | ✅ | | ||
| xml | ✅ | ✅ | ✅ | ✅ | | ||
| xmlreader | ✅ | ✅ | ✅ | ✅ | | ||
| xmlwriter | ✅ | ✅ | ✅ | ✅ | | ||
| dom | ✅ | ✅ | ✅ | ✅ | | ||
| simplexml | ✅ | ✅ | ✅ | ✅ | | ||
| redis | ✅ | ✅ | ✅ | ✅ | | ||
| yaml | ✅ | ✅ | ✅ | ✅ | | ||
| imagick | ✅ | ✅ | ✅ | ✅ | | ||
| gd | ✅ | ✅ | ✅ | ✅ | | ||
| opcache | ✅ | ✅ | ✅ | ✅ | | ||
| swoole | ✅ | ✅ | ✅ | ✅ | | ||
| mongodb | ✅ | ✅ | ❌ | ✅ | | ||
| ssh2 | ✅ | ✅ | ❌ | ❌ | | ||
| apcu | ✅ | ✅ | ❌ | ❌ | | ||
| ds | ✅ | ✅ | ✅ | ❌ | | ||
| inotify | ✅ | ❌ | ❌ | ❌ | | ||
| protobuf | ❌ | ❌ | ❌ | ❌ | | ||
| uuid | ✅ | ✅ | ❌ | ❌ | | ||
| mailparse | ✅ | ✅ | ❌ | ❌ | | ||
|
||
## 查看 新增的扩展 和 移除的扩展 | ||
|
||
```bash | ||
|
||
./bin/swoole-cli diff.php | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## 升级 PHP 版本 步骤 | ||
|
||
> 1、修改 sapi/PHP-VERSION.conf 文件里版本号即可 | ||
> 2、执行同步源码脚本, 拉取 PHP 官方源码 到本项目 | ||
```shell | ||
|
||
# 测试同步源码 | ||
php sync-source-code.php | ||
|
||
# 正式同步源码 | ||
php sync-source-code.php --action run | ||
|
||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
$poject_dir = realpath(__DIR__ . '/../'); | ||
$php_version_tag = trim(file_get_contents($poject_dir . '/sapi/PHP-VERSION.conf')); | ||
define("PHP_SRC_DIR", $poject_dir . "/var/php-{$php_version_tag}"); | ||
$php_source_folder = PHP_SRC_DIR; | ||
$php_file = $poject_dir . "/pool/lib/php-{$php_version_tag}.tar.gz"; | ||
$download_dir = dirname($php_file); | ||
|
||
|
||
# 下载 PHP 源码 | ||
$DOWNLOAD_PHP_CMD = "curl -L https://github.com/php/php-src/archive/refs/tags/php-{$php_version_tag}.tar.gz -o {$php_file}"; | ||
echo $DOWNLOAD_PHP_CMD . PHP_EOL; | ||
if (!file_exists($php_file)) { | ||
`test -d {$download_dir} || mkdir -p {$download_dir}`; | ||
`{$DOWNLOAD_PHP_CMD}`; | ||
} | ||
|
||
# 解压 PHP 源码 | ||
# tar -zxvf 文件名.tar.gz --strip-components=1 -C 指定解压目录 | ||
$UNTAR_PHP_SOURCE_CMD = <<<EOF | ||
set -x | ||
# test -d {$php_source_folder} && rm -rf {$php_source_folder} | ||
mkdir -p {$php_source_folder} | ||
test -f {$php_source_folder}/configure.ac || tar -zxf {$php_file} --strip-components=1 -C {$php_source_folder} | ||
EOF; | ||
|
||
`{$UNTAR_PHP_SOURCE_CMD}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM alpine:3.18 | ||
ARG BASE_IMAGE="alpine:3.18" | ||
FROM ${BASE_IMAGE} | ||
# FROM alpine:3.18 | ||
|
||
|
||
ARG MIRROR="" | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.