1--TEST--
2Bug #61115: Stream related segfault on fatal error in php_stream_context_del_link - variation 1
3--SKIPIF--
4<?php
5if (getenv("USE_ZEND_ALLOC") === "0") {
6    die("skip Zend MM disabled");
7}
8?>
9--FILE--
10<?php
11
12$fileResourceTemp = fopen('php://temp', 'wr');
13stream_context_get_options($fileResourceTemp);
14ftruncate($fileResourceTemp, PHP_INT_MAX);
15?>
16--EXPECTF--
17Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
18