Arquivos
hhvm/hphp/test/vm/idn-uts46-basic.php.exp
T
hermanv aac3f2bfd5 Add constants asociated with idna functions. Port applicable tests from Zend.
The Zend versions of idn_to_ascii, idn_to_unicode and idn_to_utf8 take parameters whose valid values are defined by predefined constants and whose error codes correspond to
predefined constants. This change adds those predefined constants to hiphop. It also ports two of the applicable unit tests from the Zend code base to hiphop.
2013-03-05 22:07:37 -08:00

25 linhas
491 B
Plaintext

all ok, no details:
string(22) "www.xn--fuball-cta.com"
all ok, no details, transitional:
string(16) "www.fussball.com"
all ok, with details:
string(22) "www.xn--fuball-cta.com"
array(3) {
["result"]=>
string(22) "www.xn--fuball-cta.com"
["isTransitionalDifferent"]=>
int(1)
["errors"]=>
int(0)
}
reverse, ok, with details:
string(16) "www.fußball.com"
array(3) {
["result"]=>
string(16) "www.fußball.com"
["isTransitionalDifferent"]=>
int(0)
["errors"]=>
int(0)
}