|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-04-24 07:05 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: cmb
[2020-04-24 16:18 UTC] cmb@php.net
[2020-04-24 16:18 UTC] cmb@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 13 15:00:02 2025 UTC |
Description: ------------ - in php 7.4.5 with disabled cli (opcache.enable_cli=0) memory leaks and increasing execution time. - in php 7.3.15 with disabled cli (opcache.enable_cli=0) everything is ok. In case with enabled cli opcache php 7.4 works as expected with no leaks. Test script: --------------- <?php $i = 0; while ($i < 100000) { $checkpoint = ($i % 10000 === 0); if ($checkpoint) { $start = hrtime(true); } @include __DIR__ . '/unexistentfile'; if ($checkpoint) { echo "time: " . (int)((hrtime(true) - $start)/1000) . " micro s $i\n"; echo "alloc mem: " . (memory_get_usage(true) / 1024 / 1024) . "Mb \n"; } ++$i; } Expected result: ---------------- No memory leaks and constant execution time of each iteration Actual result: -------------- Memory leaks and increasing execution time