include("extism.h") ->codeGen('Extism', 'Extism.php'); } catch (Exception $e) { continue; } } } function soext() { $platform = php_uname("s"); switch ($platform) { case "Darwin": return "dylib"; case "Linux": return "so"; case "Windows": return "dll"; default: throw new Exeception("Extism: unsupported platform ".$platform); } } generate($search_path);