blob: 37da85125000c7002413b7715f3e931eec364ed9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Bug #76755 (setcookie does not accept "double" type for expire time)
--FILE--
<?php
$host = "localhost\0.example.com";
try {
var_dump(gethostbyname($host));
} catch(Error $e) {
print $e->getMessage()."\n";
}
try {
var_dump(gethostbynamel($host));
} catch(Error $e) {
print $e->getMessage()."\n";
}
?>
--EXPECT--
gethostbyname(): Argument #1 ($hostname) must not contain any null bytes
gethostbynamel(): Argument #1 ($hostname) must not contain any null bytes
|