#45192 [Opn->Bgs]: Memory lost after printer_open()
| From: | jani@php.net | Date: | Fri, 06 Jun 2008 11:16:42 +0000 |
| Subject: | #45192 [Opn->Bgs]: Memory lost after printer_open() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125547@lists.php.net to get a copy of this message | ||
ID: 45192
Updated by: jani@php.net
Reported By: roeifu at gmx dot ch
-Status: Open
+Status: Bogus
-Bug Type: Apache related
+Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.2.6
New Comment:
This is wrong place to report bugs in PECL extensions. Try
http://pecl.php.net instead.
Previous Comments:
------------------------------------------------------------------------
[2008-06-06 11:07:27] roeifu at gmx dot ch
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 this bug report at http://bugs.php.net/?id=45192&edit=1