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