1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/standard/tests/network/gethostname.phpt
T
2015-12-24 11:46:48 +01:00

21 lines
412 B
PHP

--TEST--
string gethostname(void);
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
--SKIPIF--
<?php
if (phpversion() < "5.3.0") {
die('SKIP php version so lower.');
}
?>
--FILE--
<?php
var_dump(gethostname());
var_dump(gethostname("php-zend-brazil"));
?>
--EXPECTF--
%s
Warning: gethostname() expects exactly %d parameters, %d given in %s on line %d
NULL