diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2019-11-01 08:16:10 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-01 08:16:10 +0100 |
| commit | 9887a9d76cb5ab872313a0970594d2a8e6ae8f02 (patch) | |
| tree | da740abfcb0f9123091d9d62f64674d57a4e2235 /phpBB/includes/functions_compatibility.php | |
| parent | b40fe17d930795da22c61be247a84ceb3150bccd (diff) | |
| parent | 163aac74dbe500eac223ea2ebdbce0a76c1d6ab4 (diff) | |
| download | forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar.gz forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar.bz2 forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.tar.xz forums-9887a9d76cb5ab872313a0970594d2a8e6ae8f02.zip | |
Merge pull request #5724 from rubencm/ticket/16190
[ticket/16190] Deprecate phpbb's checkdnsrr wrapper
Diffstat (limited to 'phpBB/includes/functions_compatibility.php')
| -rw-r--r-- | phpBB/includes/functions_compatibility.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/includes/functions_compatibility.php b/phpBB/includes/functions_compatibility.php index b5b60e118e..1f9131c9c0 100644 --- a/phpBB/includes/functions_compatibility.php +++ b/phpBB/includes/functions_compatibility.php @@ -601,3 +601,25 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage return $file; } + +/** +* Wrapper for php's checkdnsrr function. +* +* @param string $host Fully-Qualified Domain Name +* @param string $type Resource record type to lookup +* Supported types are: MX (default), A, AAAA, NS, TXT, CNAME +* Other types may work or may not work +* +* @return mixed true if entry found, +* false if entry not found, +* null if this function is not supported by this environment +* +* Since null can also be returned, you probably want to compare the result +* with === true or === false, +* +* @deprecated 3.3.0-b2 (To be removed: 4.0.0) +*/ +function phpbb_checkdnsrr($host, $type = 'MX') +{ + return checkdnsrr($host, $type); +} |
