We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07ff79 commit e2eb098Copy full SHA for e2eb098
Translation/PhpExtractor.php
@@ -61,6 +61,11 @@ public function extract($directory, MessageCatalogue $catalog)
61
$files = $finder->files()->name('*.php')->in($directory);
62
foreach ($files as $file) {
63
$this->parseTokens(token_get_all(file_get_contents($file)), $catalog);
64
+
65
+ if (PHP_VERSION_ID >= 70000) {
66
+ // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
67
+ gc_mem_caches();
68
+ }
69
}
70
71
0 commit comments