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 {