The NC-25-enterprise zip file does not contain tests, so applying https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/36228.patch chokes at line 87. Here is a version of that patch without the tests-related changes: https://raw.githubusercontent.com/pondersource/sciencemesh-php/main/36228-excl-tests.patch