@@ -147,16 +147,15 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
147147 }
148148 $ this ->buildEmbed ();
149149 }
150- // build dynamic extensions if needed, must happen before building FrankenPHP to make sure we export all necessary, undefined symbols
150+ if ($ enableFrankenphp ) {
151+ logger ()->info ('building frankenphp ' );
152+ $ this ->buildFrankenphp ();
153+ }
151154 $ shared_extensions = array_map ('trim ' , array_filter (explode (', ' , $ this ->getOption ('build-shared ' ))));
152155 if (!empty ($ shared_extensions )) {
153156 logger ()->info ('Building shared extensions ... ' );
154157 $ this ->buildSharedExts ();
155158 }
156- if ($ enableFrankenphp ) {
157- logger ()->info ('building frankenphp ' );
158- $ this ->buildFrankenphp ();
159- }
160159 }
161160
162161 public function testPHP (int $ build_target = BUILD_TARGET_NONE )
@@ -326,7 +325,7 @@ protected function buildEmbed(): void
326325 $ target = "{$ libDir }/ {$ realLibName }" ;
327326 if (file_exists ($ target )) {
328327 [, $ output ] = shell ()->execWithResult ('readelf -d ' . escapeshellarg ($ target ));
329- $ output = join ("\n" , $ output );
328+ $ output = implode ("\n" , $ output );
330329 if (preg_match ('/SONAME.*\[(.+)]/ ' , $ output , $ sonameMatch )) {
331330 $ currentSoname = $ sonameMatch [1 ];
332331 if ($ currentSoname !== basename ($ target )) {
0 commit comments