1--TEST--
2getprotobyname function errors test
3--CREDITS--
4edgarsandi - <edgar.r.sandi@gmail.com>
5--FILE--
6<?php
7	// empty protocol name
8	var_dump(getprotobyname());
9
10	// invalid protocol name
11	var_dump(getprotobyname('abc'));
12?>
13--EXPECTF--
14Warning: getprotobyname() expects exactly 1 parameter, 0 given in %s on line %d
15NULL
16bool(false)
17