mirror of
https://github.com/php/php-src.git
synced 2024-10-01 14:56:10 +00:00
18 lines
472 B
PHP
18 lines
472 B
PHP
--TEST--
|
|
Bug #61115: Stream related segfault on fatal error in php_stream_context_del_link - variation 1
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("USE_ZEND_ALLOC") === "0") {
|
|
die("skip Zend MM disabled");
|
|
}
|
|
?>
|
|
--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
|