mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
rename method
This commit is contained in:
parent
9665473669
commit
14ca782672
@ -212,7 +212,7 @@ class Extension
|
||||
* @throws FileSystemException
|
||||
* @throws WrongUsageException
|
||||
*/
|
||||
public function getRequiredSharedExtensions(): string
|
||||
public function getSharedExtensionLoadString(): string
|
||||
{
|
||||
$loaded = [];
|
||||
$order = [];
|
||||
@ -254,7 +254,7 @@ class Extension
|
||||
// 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 check failed, throw RuntimeException
|
||||
$sharedExtensions = $this->getRequiredSharedExtensions();
|
||||
$sharedExtensions = $this->getSharedExtensionLoadString();
|
||||
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
|
||||
[$ret] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"');
|
||||
if ($ret !== 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user