php.net |  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
Votes:2
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-06-06 07:34 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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 http://bugs.php.net/ :)
 [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 http://bugs.php.net/ 

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.

  http://pecl.php.net/bugs/bug.php?id=14120

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: Tue Mar 19 08:01:29 2024 UTC