anchor.diff:              in
                 phpWithExtensions);
   
  -        withExtensions = extensions: buildEnv { inherit extensions; };
  +        mkWithExtensions = prevArgs: extensions:
  +          mkBuildEnv prevArgs { inherit extensions; };
   
           pcre' = if (lib.versionAtLeast version "7.3") then pcre2 else pcre;
         in
  
positive.code:           phpWithExtensions = self.withExtensions defaultPhpExtensions;
          });
  
          buildEnv = lib.makeOverridable (
            { extensions ? (_: []), extraConfig ? "", ... }@innerArgs:
              let
                filteredInnerArgs = builtins.removeAttrs innerArgs [ "extensions" "extraConfig" ];
                allArgs = args // filteredInnerArgs;
                php = generic allArgs;
  
                php-packages = (callPackage ../../../top-level/php-packages.nix {
                  inherit php phpWithExtensions;
  
negative.code:                 inherit (php) version;
                  nativeBuildInputs = [ makeWrapper ];
                  passthru = {
                    buildEnv = mkBuildEnv allArgs;
                    withExtensions = mkWithExtensions allArgs;
                    inherit enabledExtensions;
                    inherit (php-packages) packages extensions;
                  };
                  paths = [ php ];
  