ID: 35820 User updated by: ottawaremovethissixtyseven at hotmail dot com Reported By: ottawaremovethissixtyseven at hotmail dot com -Status: Feedback +Status: Open Bug Type: IIS related Operating System: W2K -PHP Version: 4CVS-2005-12-27 (snap) +PHP Version: 5CVS-2006-01-03 (snap) New Comment:
There is a significant memory leak in php5ts.dll. We are trying to pinpoint it but do not have the debug symbols. We are have great trouble compiling PHP 5.1.2RC2. The memory leak is reproducible with this simple code: <?php phpinfo(); ?> Can someone please point me in the right direction to get the debug symbols for PHP 5.1.2RC2? We'll be able to provide detailed information about what part of php5ts.dll is causing the memory leak if we can get the debug symbols. Previous Comments: ------------------------------------------------------------------------ [2005-12-31 00:43:30] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip ------------------------------------------------------------------------ [2005-12-30 17:17:12] ottawaremovethissixtyseven at hotmail dot com We're able to reproduce this memory leak by simply calling phpinfo() during our performance test. No DB API is used. DebugDiag is showing a definite memory leak in php4ts.dll and the XmlInitEncoding function even though we're only running this exact code: <?php phpinfo(); ?> We hit the server with over 300 concurrent users for several hours and can reproduce the memory leak every time. ------------------------------------------------------------------------ [2005-12-29 16:36:22] [EMAIL PROTECTED] Is it necessary to use some DB API to reproduce a leak in XML-related function? And I should note that this script doesn't make any sense, since we don't have the Connect.php and the database used, so we're unable just run it and see the problem. ------------------------------------------------------------------------ [2005-12-29 16:29:14] ottawaremovethissixtyseven at hotmail dot com As part of troubleshooting we created this simple PHP script and ran an intense performance test: <?php include('Connect.php'); $SQL = 'SELECT COUNT(*) FROM COLORS'; fdbc_fetch_into(fdbc_exec($DB,$SQL),&$Count); echo "You have {$Count[0]} colors defined in your system"; ?> Our debugger is showing: a 97% leak probability in php4ts!XmlInitEncoding Please let me know if you need additional information. ------------------------------------------------------------------------ [2005-12-27 20:51:55] [EMAIL PROTECTED] Short reproducable scripts are fine. Please leave the status at "feedback" until you can provide those. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35820 -- Edit this bug report at http://bugs.php.net/?id=35820&edit=1