1--TEST-- 2getprotobynumber 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 getprotobynumber()'); 11?> 12--FILE-- 13<?php 14var_dump(getprotobynumber(6)); 15?> 16--EXPECT-- 17string(3) "tcp" 18