anchor.diff:        ldap = {
           configureFlags = ["--with-ldap=${openldap}"];
           buildInputs = [openldap cyrus_sasl openssl];
  +      };
  +
  +      mhash = {
  +        configureFlags = ["--with-mhash"];
  +        buildInputs = [libmhash];
         };
   
         curl = {
  
positive.code: { stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
  , apacheHttpd, mysql, libxml2, readline, zlib, curl, gd, postgresql, gettext
  , openssl, pkgconfig, sqlite, config, libiconv, libjpeg, libpng, freetype
  , libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl }:
  
  let
    libmcryptOverride = libmcrypt.override { disablePosixThreads = true; };
  
negative.code: 
    cfg = {
      ldapSupport = config.php.ldap or true;
      mhashSupport = config.php.mhash or true;
      mysqlSupport = config.php.mysql or true;
      mysqliSupport = config.php.mysqli or true;
      pdo_mysqlSupport = config.php.pdo_mysql or true;
  