mirror of
https://github.com/php/php-src.git
synced 2026-03-28 10:12:18 +01:00
17 lines
354 B
PHP
17 lines
354 B
PHP
--TEST--
|
|
getprotobyname function basic test
|
|
--CREDITS--
|
|
edgarsandi - <edgar.r.sandi@gmail.com>
|
|
--SKIPIF--
|
|
<?php
|
|
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
|
|
if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(getprotobyname('tcp'));
|
|
?>
|
|
--EXPECT--
|
|
int(6)
|