Arquivos
hhvm/hphp/test/vm/idn-uts46-errors.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

35 linhas
652 B
Plaintext

=> PHP level errors
bad args:
string(0) ""
HipHop Warning: Too many arguments for idn_to_ascii(), expected 4 in hphp/test/vm/idn-uts46-errors.php on line 7
NULL
bad variant:
bool(false)
empty domain:
bool(false)
fourth arg for 2003 variant (only notice raised):
string(7) "foo.com"
with error, but no details arg:
bool(false)
with error, with details arg:
bool(false)
array(3) {
["result"]=>
string(0) ""
["isTransitionalDifferent"]=>
int(1)
["errors"]=>
int(16)
}
with error, with details arg, contextj:
bool(false)
array(3) {
["result"]=>
string(0) ""
["isTransitionalDifferent"]=>
int(1)
["errors"]=>
int(4096)
}
bool(true)