File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ public function buildUnixShared(): void
36
36
parent ::buildUnixShared ();
37
37
}
38
38
39
- public static function patchCliLinux (bool $ revert = false ): void
39
+ public static function patchCliLinux (bool $ patch ): void
40
40
{
41
- if (SPCTarget::getTargetOS () === 'Linux ' && SPCTarget::isStatic () && ! $ revert ) {
41
+ if (SPCTarget::getTargetOS () === 'Linux ' && SPCTarget::isStatic () && $ patch ) {
42
42
FileSystem::replaceFileStr (
43
43
SOURCE_PATH . '/php-src/ext/readline/readline_cli.c ' ,
44
44
"/*#else \n#define GET_SHELL_CB(cb) (cb) = php_cli_get_shell_callbacks() " ,
Original file line number Diff line number Diff line change @@ -171,12 +171,12 @@ public function testPHP(int $build_target = BUILD_TARGET_NONE)
171
171
protected function buildCli (): void
172
172
{
173
173
$ vars = SystemUtil::makeEnvVarString ($ this ->getMakeExtraVars ());
174
- readline::patchCliLinux ();
174
+ readline::patchCliLinux (true );
175
175
$ SPC_CMD_PREFIX_PHP_MAKE = getenv ('SPC_CMD_PREFIX_PHP_MAKE ' ) ?: 'make ' ;
176
176
shell ()->cd (SOURCE_PATH . '/php-src ' )
177
177
->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
178
178
->exec ("{$ SPC_CMD_PREFIX_PHP_MAKE } {$ vars } cli " );
179
- readline::patchCliLinux (true );
179
+ readline::patchCliLinux (false );
180
180
181
181
if (!$ this ->getOption ('no-strip ' , false )) {
182
182
shell ()->cd (SOURCE_PATH . '/php-src/sapi/cli ' )->exec ('strip --strip-unneeded php ' );
You can’t perform that action at this time.
0 commit comments