#28546 [Opn->Bgs]: Printer hangs on second print
| From: | iliaa@php.net | Date: | Thu, 27 May 2004 18:13:36 +0000 |
| Subject: | #28546 [Opn->Bgs]: Printer hangs on second print | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-60082@lists.php.net to get a copy of this message | ||
ID: 28546
Updated by: iliaa@php.net
Reported By: mmdrake at bctonline dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows 98
PHP Version: 4.3.4
New Comment:
Printer extension is a PECL extension, please report pecl
bugs on http://pecl.php.net/bugs/
Previous Comments:
------------------------------------------------------------------------
[2004-05-27 20:03:24] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28546&edit=1