removed obsolete code
This commit is contained in:
parent
19c6639452
commit
8d25319783
@ -827,7 +827,6 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
|
|
||||||
$output .= $rawChunk;
|
$output .= $rawChunk;
|
||||||
|
|
||||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
|
||||||
unset($tokens, $rawChunk);
|
unset($tokens, $rawChunk);
|
||||||
gc_mem_caches();
|
gc_mem_caches();
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@ class AnnotationFileLoader extends FileLoader
|
|||||||
$collection->addCollection($this->loader->load($class, $type));
|
$collection->addCollection($this->loader->load($class, $type));
|
||||||
}
|
}
|
||||||
|
|
||||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
|
||||||
gc_mem_caches();
|
gc_mem_caches();
|
||||||
|
|
||||||
return $collection;
|
return $collection;
|
||||||
|
@ -83,7 +83,6 @@ class PhpExtractor extends AbstractFileExtractor implements ExtractorInterface
|
|||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$this->parseTokens(token_get_all(file_get_contents($file)), $catalog);
|
$this->parseTokens(token_get_all(file_get_contents($file)), $catalog);
|
||||||
|
|
||||||
// PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
|
|
||||||
gc_mem_caches();
|
gc_mem_caches();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user