1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext/standard/tests/streams/bug44712.phpt
T
2019-12-20 12:01:02 +01:00

14 lines
320 B
PHP

--TEST--
bug#44712 (stream_context_set_params segfaults on invalid arguments)
--FILE--
<?php
$ctx = stream_context_get_default();
try {
stream_context_set_params($ctx, array("options" => 1));
} catch (TypeError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
Invalid stream/context parameter