|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58222 Memory lost after print (php_printer.dll)
Submitted: 2008-06-06 07:34 UTC Modified: 2008-08-13 04:31 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: roeifu at gmx dot ch Assigned:
Status: Suspended Package: printer (PECL)
PHP Version: 5.2.2 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: roeifu at gmx dot ch
New email:
PHP Version: OS:


 [2008-06-06 07:34 UTC] roeifu at gmx dot ch
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:
 $handle = printer_open("PrinternameOrAddress");
  printer_start_doc($handle, "PrintTitle");
  printer_write($handle, "test");

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-06 10:18 UTC] philip at roshambo dot org
I suppose this is a "bug system" bug until the bug system has the printer extension. :)
 [2008-06-07 03:18 UTC] daniel dot oconnor at gmail dot com
I think you want :)
 [2008-06-08 09:00 UTC] pierre dot php at gmail dot com
Well, there is no release, the package is yet orphaned. I will ask Frank if he has any plan to maintain it.

> I think you want 

No as it is not a php core extension anymore but a PECL extension.
 [2008-06-10 20:01 UTC] philip at roshambo dot org
Unfortunately this bug will likely be forgotten forever... However, a bug report now exists about the problem with this bug tracker.

Marking this bug report as "suspended" until #14120 is solved.
 [2008-06-11 03:07 UTC] roeifu at gmx dot ch
thats a pitty.
My workaround for now is to restart the apache server graceful after every 500prints. This solution works pritty fine for me.
 [2008-08-13 04:31 UTC] pierre dot php at gmail dot com
not a web bug.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 12 11:01:32 2024 UTC