From 33d974bb3d3a3630be0d6af3916618b1f6b444a3 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 18 Jul 2025 11:53:36 +0700 Subject: [PATCH] use stable sources for swoole and swow --- config/source.json | 16 +++++----------- src/SPC/builder/Extension.php | 2 +- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/config/source.json b/config/source.json index b3c9cd62..46781d78 100644 --- a/config/source.json +++ b/config/source.json @@ -957,24 +957,18 @@ }, "swoole": { "path": "php-src/ext/swoole", - "type": "git", - "rev": "master", - "url": "https://github.com/swoole/swoole-src.git", + "type": "ghtar", + "repo": "swoole/swoole-src", + "prefer-stable": true, "license": { "type": "file", "path": "LICENSE" - }, - "alt": { - "type": "ghtar", - "repo": "swoole/swoole-src", - "prefer-stable": true } }, "swow": { - "type": "git", "path": "php-src/ext/swow-src", - "rev": "ci", - "url": "https://github.com/swow/swow", + "type": "ghtar", + "repo": "swoole/swoole-src", "license": { "type": "file", "path": "LICENSE" diff --git a/src/SPC/builder/Extension.php b/src/SPC/builder/Extension.php index 511be12f..84450bbd 100644 --- a/src/SPC/builder/Extension.php +++ b/src/SPC/builder/Extension.php @@ -263,7 +263,7 @@ class Extension $ret = ''; foreach ($order as $ext) { - if ($ext instanceof Extension && $ext->isBuildShared()) { + if ($ext instanceof self && $ext->isBuildShared()) { if (Config::getExt($ext->getName(), 'zend-extension', false) === true) { $ret .= " -d \"zend_extension={$ext->getName()}\""; } else {