xref: /PHP-8.3/Zend/tests/bug79514.phpt (revision d5dd9d59)
1--TEST--
2Bug #79514 (Memory leaks while including unexistent file)
3--FILE--
4<?php
5$filename = __DIR__ . '/bug79514.doesnotexist';
6@include $filename;
7// Further include should not increase memory usage.
8$mem1 = memory_get_usage();
9@include $filename;
10$mem2 = memory_get_usage();
11var_dump($mem1 == $mem2);
12?>
13--EXPECT--
14bool(true)
15