anchor.diff:      buildInputs = [ pkgs.pcre ];
     };
   
  -  # No support for PHP 7 yet
  -  memcache = assert !isPhp7; buildPecl {
  -    name = "memcache-3.0.8";
  -
  -    sha256 = "04c35rj0cvq5ygn2jgmyvqcb0k8d03v4k642b6i37zgv7x15pbic";
  -
  -    configureFlags = [ "--with-zlib-dir=${pkgs.zlib.dev}" ];
  -
  -    makeFlags = [ "CFLAGS=-fgnu89-inline" ];
  -  };
  -
  -  memcached = if isPhp7 then memcachedPhp7 else memcached22;
  -
  -  memcached22 = assert !isPhp7; buildPecl {
  -    name = "memcached-2.2.0";
  -
  -    sha256 = "0n4z2mp4rvrbmxq079zdsrhjxjkmhz6mzi7mlcipz02cdl7n1f8p";
  -
  -    configureFlags = [
  -      "--with-zlib-dir=${pkgs.zlib.dev}"
  -      "--with-libmemcached-dir=${pkgs.libmemcached}"
  -    ];
  -
  -    nativeBuildInputs = [ pkgs.pkgconfig ];
  -    buildInputs = with pkgs; [ cyrus_sasl zlib ];
  -  };
  -
  -  # Not released yet
  -  memcachedPhp7 = assert isPhp7; buildPecl rec {
  +  memcached = buildPecl rec {
       name = "memcached-php7";
   
       src = fetchgit {
  
positive.code:       inherit php;
        inherit (pkgs) stdenv autoreconfHook fetchurl;
      };
    isPhpOlder55 = pkgs.lib.versionOlder php.version "5.5";
    isPhp7 = pkgs.lib.versionAtLeast php.version "7.0";
  
    apcu = if isPhp7 then apcu51 else apcu40;
  
    apcu40 = assert !isPhp7; buildPecl {
      name = "apcu-4.0.11";
      sha256 = "002d1gklkf0z170wkbhmm2z1p9p5ghhq3q1r9k54fq1sq4p30ks5";
      buildInputs = [ pkgs.pcre ];
      makeFlags = [ "phpincludedir=$(dev)/include" ];
      outputs = [ "out" "dev" ];
    };
  
    apcu51 = assert isPhp7; buildPecl {
      name = "apcu-5.1.11";
      sha256 = "0nz9m3fbxgyc2ij63yqmxm06a1f51g8rkxk85f85ziqdin66q2f1";
      buildInputs = [ pkgs.pcre ];
  
negative.code:     nativeBuildInputs = [ pkgs.pkgconfig ];
    };
  
    pthreads = assert (pkgs.config.php.zts or false); buildPecl {
      name = "pthreads-3.1.5";
      sha256 = "1ziap0py3zrc7qj9lw4nzq6wx1viyj8v9y1babchizzan014x6p5";
      meta.broken = true;
    };
  
    redis = buildPecl {
      name = "redis-3.1.4";
      sha256 = "0rgjdrqfif8pfn3ipk1v4gyjkkdcdrdk479qbpda89w25vaxzsxd";
    };
  
    v8 = buildPecl rec {
      version = "0.1.9";
      name = "v8-${version}";
  
  