php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45192 Memory lost after printer_open()
Submitted: 2008-06-06 11:07 UTC Modified: 2008-06-06 11:16 UTC
From: roeifu at gmx dot ch Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roeifu at gmx dot ch
New email:
PHP Version: OS:

 

 [2008-06-06 11:07 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-06 11:16 UTC] jani@php.net
This is wrong place to report bugs in PECL extensions. Try http://pecl.php.net instead. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 23 12:00:01 2025 UTC