Annotation of embedaddon/php/ext/standard/tests/streams/bug61115-1.phpt, revision 1.1.1.2

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>