mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
rename method
This commit is contained in:
parent
9665473669
commit
14ca782672
@ -212,7 +212,7 @@ class Extension
|
|||||||
* @throws FileSystemException
|
* @throws FileSystemException
|
||||||
* @throws WrongUsageException
|
* @throws WrongUsageException
|
||||||
*/
|
*/
|
||||||
public function getRequiredSharedExtensions(): string
|
public function getSharedExtensionLoadString(): string
|
||||||
{
|
{
|
||||||
$loaded = [];
|
$loaded = [];
|
||||||
$order = [];
|
$order = [];
|
||||||
@ -254,7 +254,7 @@ class Extension
|
|||||||
// Run compile check if build target is cli
|
// Run compile check if build target is cli
|
||||||
// If you need to run some check, overwrite this or add your assert in src/globals/ext-tests/{extension_name}.php
|
// If you need to run some check, overwrite this or add your assert in src/globals/ext-tests/{extension_name}.php
|
||||||
// If check failed, throw RuntimeException
|
// If check failed, throw RuntimeException
|
||||||
$sharedExtensions = $this->getRequiredSharedExtensions();
|
$sharedExtensions = $this->getSharedExtensionLoadString();
|
||||||
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
|
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
|
||||||
[$ret] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"');
|
[$ret] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"');
|
||||||
if ($ret !== 0) {
|
if ($ret !== 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user