From: roeifu at gmx dot ch Operating system: Windows XP PHP version: 5.2.6 PHP Bug Type: Apache related Bug description: Memory lost after printer_open()
Description: ------------ I've written a PHP Script, which prints Bills automatically. Now for each printed Site there will be about 120kb lost. This memory is now on the apache.exe process. If i paint serveral 100 Sites, this a huge prolem. The Server will be out of Memory. The right Script is different i've cutted it down to the necessary code. Reproduce code: --------------- <?php $handle = printer_open("PrinternameOrAddress"); printer_start_doc($handle, "PrintTitle"); printer_write($handle, "test"); printer_end_doc($handle); printer_close($handle); ?> Expected result: ---------------- Page is printed and memory is free after it, Actual result: -------------- Page is printed but the apache.exe needs more memory for each page. -- Edit bug report at http://bugs.php.net/?id=45192&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45192&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45192&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45192&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45192&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45192&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45192&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45192&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45192&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45192&r=support Expected behavior: http://bugs.php.net/fix.php?id=45192&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45192&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45192&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45192&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45192&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45192&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45192&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45192&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45192&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45192&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45192&r=mysqlcfg