Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / standard / tests / streams / bug61115-1.phpt
blob99e2f7929ca09edd77250d4a81e43cd79c83e837
1 --TEST--
2 Bug #61115: Stream related segfault on fatal error in php_stream_context_del_link - variation 1
3 --SKIPIF--
4 <?php
5 if (getenv("USE_ZEND_ALLOC") === "0") {
6     die("skip Zend MM disabled");
8 ?> 
9 --FILE--
10 <?php
12 $fileResourceTemp = fopen('php://temp', 'wr');
13 stream_context_get_options($fileResourceTemp);
14 ftruncate($fileResourceTemp, PHP_INT_MAX);
16 --EXPECTF--
17 Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d