From:             mmdrake at bctonline dot com
Operating system: Windows 98
PHP version:      4.3.4
PHP Bug Type:     *General Issues
Bug description:  Printer hangs on second print

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 bug report at http://bugs.php.net/?id=28546&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28546&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28546&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28546&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28546&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28546&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28546&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28546&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28546&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28546&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28546&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28546&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28546&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28546&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28546&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28546&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28546&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28546&r=float

Reply via email to