anchor.diff:      installPhase = ''
         mkdir -p $out/bin
         install -D $src $out/libexec/composer/composer.phar
  -      makeWrapper ${php}/bin/php $out/bin/composer \
  +      makeWrapper ${phpWithExtensions}/bin/php $out/bin/composer \
           --add-flags "$out/libexec/composer/composer.phar" \
           --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]}
       '';
  
positive.code:     };
    };
  
    pthreads = if isPhp73 then pthreads32-dev else pthreads32;
  
    pthreads32 = assert (pkgs.config.php.zts or false); assert !isPhp73; buildPecl rec {
      version = "3.2.0";
      pname = "pthreads";
  
      src = pkgs.fetchFromGitHub {
        owner = "krakjoe";
        repo = "pthreads";
        rev = "v${version}";
        sha256 = "17hypm75d4w7lvz96jb7s0s87018yzmmap0l125d5fd7abnhzfvv";
      };
  
      buildInputs = with pkgs; [ pcre.dev ];
    };
  
    pthreads32-dev = assert (pkgs.config.php.zts or false); assert isPhp73; buildPecl {
      version = "3.2.0-dev";
      pname = "pthreads";
  
      src = pkgs.fetchFromGitHub {
        owner = "krakjoe";
        repo = "pthreads";
        rev = "4d1c2483ceb459ea4284db4eb06646d5715e7154";
        sha256 = "07kdxypy0bgggrfav2h1ccbv67lllbvpa3s3zsaqci0gq4fyi830";
      };
  
      buildInputs = with pkgs; [ pcre2.dev ];
    };
  
    redis = buildPecl {
      version = "5.1.1";
      pname = "redis";
  
      sha256 = "1041zv91fkda73w4c3pj6zdvwjgb3q7mxg6mwnq9gisl80mrs732";
    };
  
    sqlsrv = buildPecl {
  
negative.code:       "--with-event-extra"
        "--with-event-pthreads"
      ];
  
      postPhpize = ''
        substituteInPlace configure --replace 'as_fn_error $? "Couldn'\'''t find $phpincludedir/sockets/php_sockets.h. Please check if sockets extension installed" "$LINENO" 5' \
                                              ':'
      '';
  
      nativeBuildInputs = [ pkgs.pkgconfig ];
      buildInputs = with pkgs; [ openssl libevent ];
      internalDeps = [ php.packages.exts.sockets ];
  
      meta = with pkgs.lib; {
        description = ''
  