php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28546 Printer hangs on second print
Submitted: 2004-05-27 20:03 UTC Modified: 2004-05-27 20:11 UTC
From: mmdrake at bctonline dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4 OS: Windows 98
Private report: No CVE-ID: None
 [2004-05-27 20:03 UTC] mmdrake at bctonline dot com
Description:
------------
Enviro:  PHP-Gtk 1.0, to MySQL data; print using PHP printer commands (printer_draw_text, etc.).  User accesses main screen and then prompt screen to select data and request print.  

First report prints just fine.  If they return to prompt screen and request new report WITHOUT leaving the main screen, report goes to printer, (icon in sys tray), but will not actually print.  Hangs until user exits main Gtk screen, then report is released to printer.





Reproduce code:
---------------
(Called inside PHP-Gtk)

$handle = printer_open("HCF Printer");
printer_start_doc($handle);
printer_start_page($handle);
while .... {
   printer_draw_text($handle, $fileContent,$y,$x);
} //end while
                
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
    
unset($handle);


Expected result:
----------------
User should be able to print as many times as needed, instead of just once and then having to exit Gtk.

Actual result:
--------------
User can print only once, and then has to exit Gtk for report to actually reach printer.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-27 20:13 UTC] iliaa@php.net
Printer extension is a PECL extension, please report pecl 
bugs on http://pecl.php.net/bugs/ 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 02:01:29 2024 UTC