From: odinuv at gmail dot com Operating system: win32 PHP version: 5CVS-2006-10-07 (snap) PHP Bug Type: XSLT related Bug description: Memory leak in XSLTProcessor->transformToDoc()
Description: ------------ Using a certain data the function call to XSLTProcessor->transformToDoc() produces a 2kb-4kb memory leak. This happens *only* on win32 (tested on NT 5.0 build 2195 and NT 5.2 build 3790) platform. Reproduced succesfully on apache 2.0.55 and 2.0.59 with php 5.1.6 and todays snapshot 5.2.0RC6-dev. Reproduce code: --------------- Code is standard (taken from manual) procedure to transform XML+XSTL into a HTML document. Both URLs contain same files: 1.xml - source XML data 1.xsl - source XSLT data character-entities.dtd - necessery entities definitions test.txt - PHP source code for the transformation URL1: (not online 24/7, showing the current php process usage on server) https://81.27.200.150:13580/transformToDoc/test.php URL2: (online 24/7, not showing the current mem usage - for downloading only) http://virklis.cust.ignum.cz/transformToDoc/test.php Actual result: -------------- Every page refresh produces a 2-4Kb raise in memory used by PHP (see live on https://81.27.200.150:13580/transformToDoc/test.php) -- Edit bug report at http://bugs.php.net/?id=39080&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39080&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39080&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39080&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39080&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39080&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39080&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39080&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39080&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39080&r=support Expected behavior: http://bugs.php.net/fix.php?id=39080&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39080&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39080&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39080&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39080&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39080&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39080&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39080&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39080&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39080&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39080&r=mysqlcfg