--TEST-- Test fsockopen() function : error conditions --FILE-- --EXPECTF-- *** Testing fsockopen() : basic error conditions *** -- Testing fsockopen() function with more than expected no. of arguments -- Warning: fsockopen() expects at most 5 parameters, 6 given in %s on line %d bool(false) string(10) "string_val" int(10) -- Testing fsockopen() function with less than expected no. of arguments -- Warning: fsockopen() expects at least 1 parameter, 0 given in %s on line %d bool(false) -- Attempting to connect to a non-existent socket -- Warning: fsockopen(): unable to connect to tcp://127.0.0.1:31337 (%a) in %s on line %d bool(false) string(%d) "%a" -- Attempting to connect using an invalid protocol -- Warning: fsockopen(): unable to connect to invalid://127.0.0.1:31337 (Unable to find the socket transport "invalid" - did you forget to enable it when you configured PHP?) in %s on line %d bool(false) string(100) "Unable to find the socket transport "invalid" - did you forget to enable it when you configured PHP?" Done