From: Anatol Belski Date: Sun, 24 May 2015 13:38:39 +0000 (+0200) Subject: pick up sasl auth plugins if there was any in the deps X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~32^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=404360f261ef56b478228caf8f5371ddbe6feaf2;p=php pick up sasl auth plugins if there was any in the deps --- diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php index 9e4422addc..7b4c057530 100644 --- a/win32/build/mkdist.php +++ b/win32/build/mkdist.php @@ -342,6 +342,22 @@ foreach ($ENCHANT_DLLS as $dll) { } } +$SASL_DLLS = $php_build_dir . "/bin/sasl2/sasl*.dll"; +$fls = glob($SASL_DLLS); +if (!empty($fls)) { + $sasl_dest_dir = "$dist_dir/sasl2"; + if (!file_exists($sasl_dest_dir) || !is_dir($sasl_dest_dir)) { + if (!mkdir("$sasl_dest_dir", 0777, true)) { + echo "WARNING: couldn't create '$sasl_dest_dir' for SASL2 auth plugins "; + } + } + foreach ($fls as $fl) { + if (!copy($fl, "$sasl_dest_dir/" . basename($fl))) { + echo "WARNING: couldn't copy $fl into the $sasl_dest_dir"; + } + } +} + /* and those for pecl */ foreach ($pecl_dll_deps as $dll) { if (in_array($dll, $extra_dll_deps)) {