diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-15 16:58:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-15 16:58:00 +0000 |
commit | 434d713861b70f6c6563d6ee50a8e64f14c970d9 (patch) | |
tree | b72c523c72e764420f835ba9d63d43ffef687dcf /dev-php/PEAR-Validate/files | |
parent | f78108598211053d41752a83e0345441bb9014ae (diff) |
gentoo resync : 15.02.2018
Diffstat (limited to 'dev-php/PEAR-Validate/files')
-rw-r--r-- | dev-php/PEAR-Validate/files/0.8.5-fix-test-php7.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-php/PEAR-Validate/files/0.8.5-fix-test-php7.patch b/dev-php/PEAR-Validate/files/0.8.5-fix-test-php7.patch new file mode 100644 index 000000000000..069c5467d049 --- /dev/null +++ b/dev-php/PEAR-Validate/files/0.8.5-fix-test-php7.patch @@ -0,0 +1,19 @@ +From a22b5cf2c7e4b4cf366c311150721961d9b456ea Mon Sep 17 00:00:00 2001 +From: Christian Weiske <cweiske@cweiske.de> +Date: Thu, 16 Jul 2015 00:38:55 +0200 +Subject: [PATCH] Make tests run on PHP 7 + +diff --git a/Validate.php b/Validate.php +index a8f621c..ea6cfa7 100644 +--- a/Validate.php ++++ b/Validate.php +@@ -583,7 +583,8 @@ function email($email, $options = null) + if ($use_rfc822? Validate::__emailRFC822($email, $options) : + preg_match($regex, $email)) { + if ($check_domain && function_exists('checkdnsrr')) { +- $domain = preg_replace('/[^-a-z.0-9]/i', '', array_pop(explode('@', $email))); ++ $parts = explode('@', $email); ++ $domain = preg_replace('/[^-a-z.0-9]/i', '', array_pop($parts)); + if (checkdnsrr($domain, 'MX') || checkdnsrr($domain, 'A')) { + return true; + } |