1--TEST--
2getprotobyname function basic test
3--CREDITS--
4edgarsandi - <edgar.r.sandi@gmail.com>
5--SKIPIF--
6<?php
7if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
8    if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
9}
10if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getprotobyname()');
11?>
12--FILE--
13<?php
14var_dump(getprotobyname('tcp'));
15?>
16--EXPECT--
17int(6)
18