getOption('enable-zts')) { throw new WrongUsageException('ext-parallel must be built with ZTS builds. Use "--enable-zts" option!'); } } #[BeforeStage('php', [php::class, 'buildconfForUnix'], 'ext-parallel')] #[PatchDescription('Fix parallel m4 hardcoded PHP_VERSION check')] public function patchBeforeBuildconf(): bool { FileSystem::replaceFileRegex("{$this->getSourceDir()}/config.m4", '/PHP_VERSION=.*/m', ''); return true; } }