anchor.diff:  # pcre functionality is tested in nixos/tests/php-pcre.nix
   { lib, stdenv, fetchurl, autoconf, bison, libtool, pkgconfig, re2c
  -, libmysqlclient, libxml2, readline, zlib, curl, postgresql, gettext
  +, libxml2, readline, zlib, curl, postgresql, gettext
   , openssl, pcre, pcre2, sqlite, config, libjpeg, libpng, freetype
   , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC
   , uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2
  
positive.code:         ++ optional postgresqlSupport postgresql
          ++ optional pdo_odbcSupport unixODBC
          ++ optional pdo_pgsqlSupport postgresql
          ++ optionals pdo_mysqlSupport mysqlBuildInputs
          ++ optionals mysqliSupport mysqlBuildInputs
          ++ optional gmpSupport gmp
          ++ optional gettextSupport gettext
          ++ optional intlSupport icu
  
negative.code:       ++ optional postgresqlSupport "--with-pgsql=${postgresql}"
        ++ optional pdo_odbcSupport "--with-pdo-odbc=unixODBC,${unixODBC}"
        ++ optional pdo_pgsqlSupport "--with-pdo-pgsql=${postgresql}"
        ++ optional (pdo_mysqlSupport && mysqlndSupport) "--with-pdo-mysql=mysqlnd"
        ++ optional (mysqliSupport && mysqlndSupport) "--with-mysqli=mysqlnd"
        ++ optional (pdo_mysqlSupport || mysqliSupport) "--with-mysql-sock=/run/mysqld/mysqld.sock"
        ++ optional bcmathSupport "--enable-bcmath"
        # FIXME: Our own gd package doesn't work, see https://bugs.php.net/bug.php?id=60108.
        ++ optionals (gdSupport && versionAtLeast version "7.4") [
  