| Newsgroups |
php.pear.bugs |
| Message-ID |
<[email protected]> |
Edit report at https://pear.php.net/bugs/bug.php?id=19440&edit=1
ID: 19440
Comment by: midget at midworld dot net
Reported By: midget at midworld dot net
Summary: Outdated top level domains list
Status: Feedback
Type: Bug
Package: Validate
Operating System: Debian GNU/Linux
Package Version: 0.8.5
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
The script got missing...
You can still find it at:
https://paste.debian.net/?show=1048975;lines=0
Download link: https://paste.debian.net/download/1048975
Usage:
chmod +x build-arr-tlds.php
wget -c http://data.iana.org/TLD/tlds-alpha-by-domain.txt &&
./build-arr-tlds.php
Previous Comments:
------------------------------------------------------------------------
[2012-07-23 15:44:42] midget
Hi again,
Please let me know if you need any other additional feedback in order to
re-activate this issue?
Thanks in advance.
Regards,
------------------------------------------------------------------------
[2012-05-30 02:11:00] midget
Script usage:
wget -c http://data.iana.org/TLD/tlds-alpha-by-domain.txt &&
./build-arr-tlds
Regards,
------------------------------------------------------------------------
[2012-05-30 02:09:52] midget
Added #patch bug:19440;patch:build-arr-tlds;revision:1338340192;.
------------------------------------------------------------------------
[2012-05-30 02:09:06] midget
Since it's not possible to upload .php files here I'm just the content:
arr_ctld.php:
//
// # version 2012052900, last updated tue may 29 07:07:01 2012 utc
//
$_ctld = array(
'ac', 'ad', 'ae', 'af', 'ag',
'ai', 'al', 'am', 'an', 'ao',
'aq', 'ar', 'as', 'at', 'au',
'aw', 'ax', 'az', 'ba', 'bb',
'bd', 'be', 'bf', 'bg', 'bh',
'bi', 'bj', 'bm', 'bn', 'bo',
'br', 'bs', 'bt', 'bv', 'bw',
'by', 'bz', 'ca', 'cc', 'cd',
'cf', 'cg', 'ch', 'ci', 'ck',
'cl', 'cm', 'cn', 'co', 'cr',
'cu', 'cv', 'cw', 'cx', 'cy',
'cz', 'de', 'dj', 'dk', 'dm',
'do', 'dz', 'ec', 'ee', 'eg',
'er', 'es', 'et', 'eu', 'fi',
'fj', 'fk', 'fm', 'fo', 'fr',
'ga', 'gb', 'gd', 'ge', 'gf',
'gg', 'gh', 'gi', 'gl', 'gm',
'gn', 'gp', 'gq', 'gr', 'gs',
'gt', 'gu', 'gw', 'gy', 'hk',
'hm', 'hn', 'hr', 'ht', 'hu',
'id', 'ie', 'il', 'im', 'in',
'io', 'iq', 'ir', 'is', 'it',
'je', 'jm', 'jo', 'jp', 'ke',
'kg', 'kh', 'ki', 'km', 'kn',
'kp', 'kr', 'kw', 'ky', 'kz',
'la', 'lb', 'lc', 'li', 'lk',
'lr', 'ls', 'lt', 'lu', 'lv',
'ly', 'ma', 'mc', 'md', 'me',
'mg', 'mh', 'mk', 'ml', 'mm',
'mn', 'mo', 'mp', 'mq', 'mr',
'ms', 'mt', 'mu', 'mv', 'mw',
'mx', 'my', 'mz', 'na', 'nc',
'ne', 'nf', 'ng', 'ni', 'nl',
'no', 'np', 'nr', 'nu', 'nz',
'om', 'pa', 'pe', 'pf', 'pg',
'ph', 'pk', 'pl', 'pm', 'pn',
'pr', 'ps', 'pt', 'pw', 'py',
'qa', 're', 'ro', 'rs', 'ru',
'rw', 'sa', 'sb', 'sc', 'sd',
'se', 'sg', 'sh', 'si', 'sj',
'sk', 'sl', 'sm', 'sn', 'so',
'sr', 'st', 'su', 'sv', 'sx',
'sy', 'sz', 'tc', 'td', 'tf',
'tg', 'th', 'tj', 'tk', 'tl',
'tm', 'tn', 'to', 'tp', 'tr',
'tt', 'tv', 'tw', 'tz', 'ua',
'ug', 'uk', 'us', 'uy', 'uz',
'va', 'vc', 've', 'vg', 'vi',
'vn', 'vu', 'wf', 'ws', 'ye',
'yt', 'za', 'zm', 'zw',
);
arr_gtld.php:
//
// # version 2012052900, last updated tue may 29 07:07:01 2012 utc
//
$_gtld = array(
'aero', 'asia', 'biz', 'cat', 'com',
'coop', 'edu', 'gov', 'info', 'int',
'jobs', 'mil', 'mobi', 'museum', 'name',
'net', 'org', 'pro', 'tel', 'travel',
'xxx',
);
arr_itld.php:
//
// # version 2012052900, last updated tue may 29 07:07:01 2012 utc
//
$_itld = array(
'arpa', 'root',
);
arr_stld.php:
//
// # version 2012052900, last updated tue may 29 07:07:01 2012 utc
//
$_stld = array(
'xn--0zwm56d', 'xn--11b5bs3a9aj6g', 'xn--3e0b707e',
'xn--45brj9c', 'xn--80akhbyknj4f',
'xn--80ao21a', 'xn--90a3ac', 'xn--9t4b11yi5a',
'xn--clchc0ea0b2g2a9gcd', 'xn--deba0ad',
'xn--fiqs8s', 'xn--fiqz9s', 'xn--fpcrj9c3d', 'xn--fzc2c9e2c',
'xn--g6w251d',
'xn--gecrj9c', 'xn--h2brj9c', 'xn--hgbk6aj7f53bba',
'xn--hlcj6aya9esc7a', 'xn--j6w193g',
'xn--jxalpdlp', 'xn--kgbechtv', 'xn--kprw13d', 'xn--kpry57d',
'xn--lgbbat1ad8j',
'xn--mgbaam7a8h', 'xn--mgbayh7gpa', 'xn--mgbbh1a71e',
'xn--mgbc0a9azcg', 'xn--mgberp4a5d4ar',
'xn--o3cw4h', 'xn--ogbpf8fl', 'xn--p1ai', 'xn--pgbs0dh',
'xn--s9brj9c',
'xn--wgbh1c', 'xn--wgbl6a', 'xn--xkc2al3hye2a',
'xn--xkc2dl3a5ee0h', 'xn--yfro4i67o',
'xn--ygbi2ammx', 'xn--zckzah',
);
------------------------------------------------------------------------
[2012-05-30 02:03:02] midget
I'll upload some files with up-to-date arrays generated from current
IANA's TLD list.
Also I'll upload the quick and dirty script I used to create those
files.
Needs lots of improvement but maybe you can modify it and call it during
Validate package build process to get up-to-date arrays on every
release.
Thanks in advance and sorry for the noise.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=19440
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19440&edit=1