xref: /PHP-8.0/Zend/tests/bug79514.phpt (revision 3151676f)
1--TEST--
2Bug #79514 (Memory leaks while including unexistent file)
3--FILE--
4<?php
5$mem1 = memory_get_usage(true);
6for ($i = 0; $i < 100000; $i++) {
7    @include __DIR__ . '/bug79514.doesnotexist';
8}
9$mem2 = memory_get_usage(true);
10var_dump($mem2 - $mem1 < 100000);
11?>
12--EXPECT--
13bool(true)
14