Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Hostname validator - TLD list update #7302

Closed
wants to merge 1,950 commits into from

Conversation

Tauop
Copy link
Contributor

@Tauop Tauop commented Mar 8, 2015

Hi,

This is an update of TLD list in Hostname Validator.

BTW, I've made this little code to generate it.
Can we add it somewhere ?

Patrick

<?php
include 'init_autoloader.php';
use Zend\Dom\Query as DomQuery;
use Zend\Http\ClientStatic;

$response = ClientStatic::get('http://www.iana.org/domains/root/db');
if (!$response->isSuccess()) {
    echo "Error: can't get www.iana.org/domains/root/db".PHP_EOL;
    exit(1);
}

$dom = new DomQuery($response->getBody());
foreach ($dom->execute('span.domain.tld > a') as $node) {
    echo  "'".substr($node->nodeValue, 1)."',".PHP_EOL;
}

samsonasik and others added 30 commits February 4, 2015 10:05
…ory/zf2 into form-button-translate-content-param

Conflicts:
	library/Zend/Form/View/Helper/FormButton.php
weierophinney and others added 27 commits February 25, 2015 10:57
…ilter_specs-from-zfcampus/zf-content-validation

Add input_filter_specs feature from zfcampus/zf-content-validation and associated tests
Add ability to set SMTP envelope addresses
- Remove fluent interfaces
- Ensure docblocks are up-to-date
- Fix CS issues
Refactoring and bugfixes for InputFilter component

Conflicts:
	tests/ZendTest/InputFilter/BaseInputFilterTest.php
- Anonymous function definitions
…rase

Override reason phrase by changing status code
We recently noticed failures occuring for the DbaInifile cache storage tests.
The errors reported indicated an inability to perform `dba_replace()`
operations, with no indication of why this was.

On digging through the various DBA documentation on php.net, I discovered that
the `dba_replace` and `dba_insert()` functions are only reliable on GDBM and
QDBM handlers; any other handler may result in unexpected or unintended
behavior.

I have tested against flatfile, GDBM, DB4, and GDBM, and none of these show any
issues; however, inifile reliably has issues at this point. As such, we can no
longer support that version.

This patch raises an exception if the inifile handler is provided as a DBA
option, and the tests have been modified to ensure that the exception is raised.
- in php-cs-fixer 1.5 on PHP 5.6
- in php-cs-fixer 1.5 on PHP 5.6
@Tauop Tauop closed this Mar 8, 2015
@Tauop
Copy link
Contributor Author

Tauop commented Mar 8, 2015

bad branch, sorry... 👎

@Tauop Tauop deleted the feature/validator-hostname-tld branch March 8, 2015 17:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet