|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-04-06 10:10 UTC] nicolas dot gourdeau at orange dot com
Description:
------------
Php Version:
PHP 7.1.3 (cli) (built: Mar 14 2017 23:33:39) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.3, Copyright (c) 1999-2017, by Zend Technologies
Contexte: Symfony3 - Mode: Dev
Symfony3 process php code with reflexion. During this process this error happend often but not everytime:
OutOfMemoryException in DebugClassLoader.php line 204:
Error: Allowed memory size of 8589934592 bytes exhausted (tried to allocate 8791646535632 bytes)
$refl = new \ReflectionClass($class);
foreach ($refl->getInterfaceNames() as $interface) {
class_implements($interface); => generate the error
}
Test script:
---------------
I did not sucess to reproduce the bug out of symfony3 context
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
I have some debug, it is link to the same issue, sometimes when i ask for a class intarface name thru reflextion, I get a strange name: "#\s*\r?\n \* +#" object(ReflectionClass)#10 (1) { ["name"]=> string(45) "Symfony\Component\HttpFoundation\ParameterBag" } ["name"]=> string(45) "Symfony\Component\HttpFoundation\ParameterBag" ["notice"]=> array(0) { } ["len"]=> int(8) ["ns"]=> string(8) "Symfony\" ["parent"]=> bool(false) ["parentInterfaces"]=> array(1) { ["#\s*\r?\n \* +#"]=> int(1) } ["deprecatedInterfaces"]=> array(0) { } ["interface"]=> string(15) "#\s*\r?\n \* +#" } I'm trying to do a simple reproducing script.