Annotation of embedaddon/php/ext/standard/tests/streams/stream_context_set_option_error_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: stream_context_set_option() function - error : invalid argument
3: --CREDITS--
4: Jean-Marc Fontaine <jean-marc.fontaine@alterway.fr>
5: # Alter Way Contribution Day 2011
6: --FILE--
7: <?php
8: $context = stream_context_create();
9:
10: // Single option
11: var_dump(stream_context_set_option($context, 'http'));
12:
13: // Array of options
14: var_dump(stream_context_set_option($context, array(), 'foo', 'bar'));
15: ?>
16: --EXPECTF--
17: Warning: stream_context_set_option(): called with wrong number or type of parameters; please RTM in %s on line %d
18: bool(false)
19:
20: Warning: stream_context_set_option(): called with wrong number or type of parameters; please RTM in %s on line %d
21: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>