anchor.diff:        # interbase (7.3, 7.2)
         { name = "intl";
           buildInputs = [ icu64 ];
  -        patches = lib.optional (lib.versionOlder php.version "7.4") (fetchpatch {
  -          url = "https://github.com/php/php-src/commit/93a9b56c90c334896e977721bfb3f38b1721cec6.patch";
  -          sha256 = "055l40lpyhb0rbjn6y23qkzdhvpp7inbnn6x13cpn4inmhjqfpg4";
  -        });
  +        patches = lib.optionals (lib.versionOlder php.version "7.4") [
  +          (fetchpatch {
  +            url = "https://github.com/php/php-src/commit/93a9b56c90c334896e977721bfb3f38b1721cec6.patch";
  +            sha256 = "055l40lpyhb0rbjn6y23qkzdhvpp7inbnn6x13cpn4inmhjqfpg4";
  +          })
  +        ];
         }
         { name = "json"; enable = lib.versionOlder php.version "8.0"; }
         { name = "ldap";
  
positive.code:                +----------------------------------------------------------------------+
                 | Copyright (c) The PHP Group                                          |
            '')
          ] ++ lib.optional (lib.versionOlder php.version "7.4.8") [
            (pkgs.writeText "mysqlnd_fix_compression.patch" ''
              --- a/ext/mysqlnd/mysqlnd.h
              +++ b/ext/mysqlnd/mysqlnd.h
  
negative.code:         NIX_CFLAGS_COMPILE = [ "-I../.." "-DHAVE_DOM" ];
          configureFlags = [ "--enable-xmlreader" ]
            # Required to build on darwin.
            ++ lib.optionals (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ]; }
        { name = "xmlrpc";
          buildInputs = [ libxml2 libiconv ];
          # xmlrpc was unbundled in 8.0 https://php.watch/versions/8.0/xmlrpc
          enable = lib.versionOlder php.version "8.0";
          configureFlags = [ "--with-xmlrpc" ]
            # Required to build on darwin.
            ++ lib.optionals (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ]; }
        { name = "xmlwriter";
          buildInputs = [ libxml2 ];
          configureFlags = [ "--enable-xmlwriter" ]
            # Required to build on darwin.
            ++ lib.optionals (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ]; }
        { name = "xsl";
          buildInputs = [ libxslt libxml2 ];
          doCheck = lib.versionOlder php.version "8.0";
  