anchor.diff:        nativeBuildInputs = [ php.unwrapped autoconf pkgconfig re2c ];
         inherit configureFlags internalDeps buildInputs
           zendExtension doCheck;
  +
  +      prePatch = "pushd ../..";
  +      postPatch = "popd";
   
         preConfigure = ''
           nullglobRestore=$(shopt -p nullglob)
  
positive.code:         # included after the ifdef...
          patches = lib.optional (lib.versionOlder php.version "7.4") [
            (pkgs.writeText "zend_file_cache_config.patch" ''
              --- a/zend_file_cache.c
              +++ b/zend_file_cache.c
              @@ -27,9 +27,9 @@
               #include "ext/standard/md5.h"
               #endif
  
negative.code:         # included by all .c-files.
          patches = [
            (pkgs.writeText "mysqlnd_config.patch" ''
              --- a/ext/mysqlnd/mysqlnd.h
              +++ b/ext/mysqlnd/mysqlnd.h
              @@ -1,3 +1,6 @@
              +#ifdef HAVE_CONFIG_H
              +#include "config.h"
  