anchor.diff:  
         patches = [ ./fix-paths-php7.patch ] ++ extraPatches;
   
  -      postPatch = optional stdenv.isDarwin ''
  -        substituteInPlace configure --replace "-lstdc++" "-lc++"
  -      '';
  -
         stripDebugList = "bin sbin lib modules";
   
         outputs = [ "out" "dev" ];
  
positive.code: # pcre functionality is tested in nixos/tests/php-pcre.nix
  { lib, stdenv, fetchurl, autoconf, bison, libtool, pkgconfig, re2c
  , libxml2, readline, zlib, curl, postgresql, gettext
  , openssl, pcre, pcre2, sqlite, config
  , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC
  , uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2
  , gd, freetype, libXpm, libjpeg, libpng, libwebp
  
negative.code: 
        inherit version;
  
        pname = "php";
  
        enableParallelBuilding = true;
  
        nativeBuildInputs = [
          autoconf automake bison file flex libtool pkgconfig re2c
        ];
  
        buildInputs = [ ]
          ++ optional (versionOlder version "7.3") pcre
          ++ optional (versionAtLeast version "7.3") pcre2
  