<?php
declare(strict_types=1);
$root='/www/server/php/74/src/ext/fileinfo';$files=[];$it=new RecursiveIteratorIterator(new RecursiveDirectoryIterator($root,FilesystemIterator::SKIP_DOTS));foreach($it as $file)if($file->isFile())$files[substr($file->getPathname(),strlen($root)+1)]=hash_file('sha256',$file->getPathname());ksort($files);
$out=['source_root'=>$root,'source_rehash_stage'=>'cache preparation after original private build; original source directory not changed by this task','source_file_hashes'=>$files,'php_binary'=>['path'=>PHP_BINARY,'sha256'=>hash_file('sha256',PHP_BINARY)],'ABI_inputs'=>[]];foreach(['/www/server/php/74/include/php/main/php_version.h','/www/server/php/74/include/php/main/php.h','/www/server/php/74/bin/phpize','/www/server/php/74/bin/php-config'] as $file)$out['ABI_inputs'][$file]=hash_file('sha256',$file);echo json_encode($out,JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES),"\n";
