blob: 28a1838c1638a8e0c8df6327676064e20b0dce24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Bug #61115: Stream related segfault on fatal error in php_stream_context_del_link.
--FILE--
<?php
$arrayLarge = array_fill(0, 113663, '*');
$resourceFileTemp = fopen('php://temp', 'r+');
stream_context_set_params($resourceFileTemp, array());
try {
preg_replace('', function() {}, $resourceFileTemp);
} catch (\TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
preg_replace(): Argument #2 ($replace) must be of type string|array, Closure given
|