mirror of
https://github.com/php/php-src.git
synced 2024-09-27 21:07:25 +00:00
12 lines
377 B
PHP
12 lines
377 B
PHP
--TEST--
|
|
Bug #61115: Stream related segfault on fatal error in php_stream_context_del_link - variation 1
|
|
--FILE--
|
|
<?php
|
|
|
|
$fileResourceTemp = fopen('php://temp', 'wr');
|
|
stream_context_get_options($fileResourceTemp);
|
|
ftruncate($fileResourceTemp, PHP_INT_MAX);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Allowed memory size of %d bytes exhausted %s (tried to allocate %d bytes) in %s on line %d
|