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

15 lines
331 B
PHP

--TEST--
Bug #71884 (Null pointer deref (segfault) in stream_context_get_default)
--FILE--
<?php
$arr=array();
$arr[0]['A']=0;
try {
stream_context_get_default($arr);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
Options should have the form ["wrappername"]["optionname"] = $value