stream_context_set_option_error_002.phpt [plain text]
--TEST--
stream_context_set_option() function - error : missing argument
--CREDITS--
Jean-Marc Fontaine <jean-marc.fontaine@alterway.fr>
# Alter Way Contribution Day 2011
--FILE--
<?php
var_dump(stream_context_set_option());
$context = stream_context_create();
var_dump(stream_context_set_option($context));
?>
--EXPECTF--
Warning: stream_context_set_option() expects exactly 4 parameters, 0 given in %s on line %d
bool(false)
Warning: stream_context_set_option() expects exactly 4 parameters, 1 given in %s on line %d
bool(false)