<?php
$plan=json_decode(file_get_contents(__DIR__.'/execution-plan.json'),true);require __DIR__.'/ScopeMarker.php';nfScopeMarker($plan);$ports=[];foreach([18981,18982]as $p){$s=@fsockopen('127.0.0.1',$p,$n,$e,0.5);$ports[$p]=$s!==false;if($s)fclose($s);}if(array_filter($ports))throw new RuntimeException('Port collision');$r=['source959_exact_fullfileset'=>true,'ports'=>$ports,'PDO'=>0,'SQL'=>0,'HTTP'=>0,'DML'=>0];file_put_contents(__DIR__.'/private/static.json',json_encode($r));chmod(__DIR__.'/private/static.json',0600);echo json_encode($r),PHP_EOL;
