1--TEST-- 2Test function getservbyport() by calling it more than or less than its expected arguments 3--CREDITS-- 4Italian PHP TestFest 2009 Cesena 19-20-21 june 5Fabio Fabbrucci (fabbrucci@grupporetina.com) 6Michele Orselli (mo@ideato.it) 7Simone Gentili (sensorario@gmail.com) 8--FILE-- 9<?php 10$port = 80; 11$protocol = "tcp"; 12$extra_arg = 12; 13var_dump(getservbyport( $port, $protocol, $extra_arg ) ); 14var_dump(getservbyport($port)); 15?> 16--EXPECTF-- 17Warning: getservbyport() expects exactly 2 parameters, %d given in %s on line %d 18NULL 19 20Warning: getservbyport() expects exactly 2 parameters, %d given in %s on line %d 21NULL 22