Bug #74380 [NEW]: Reflexion try to allocate 8791646535632 bytes
| From: | nicolas dot gourdeau at orange dot com | Date: | Thu, 06 Apr 2017 10:10:09 +0000 |
| Subject: | Bug #74380 [NEW]: Reflexion try to allocate 8791646535632 bytes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-208356@lists.php.net to get a copy of this message | ||
From: nicolas dot gourdeau at orange dot com
Operating system: windows 7 Pro SP1
PHP version: 7.1.3
Package: Reflection related
Bug Type: Bug
Bug description:Reflexion try to allocate 8791646535632 bytes
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
--
Edit bug report at https://bugs.php.net/bug.php?id=74380&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74380&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74380&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74380&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74380&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74380&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74380&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74380&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74380&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74380&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74380&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74380&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74380&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74380&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74380&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74380&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74380&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74380&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74380&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74380&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74380&r=mysqlcfg