#26237 [Opn->Bgs]: No output when calling printer_draw_text()

From: Date: Fri, 23 Sep 2005 13:32:00 +0000
Subject: #26237 [Opn->Bgs]: No output when calling printer_draw_text()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85498@lists.php.net to get a copy of this message
ID: 26237 Updated by: sniper@php.net Reported By: friet at eten dot nl -Status: Open +Status: Bogus -Bug Type: PECL related +Bug Type: *General Issues Operating System: NT4 PHP Version: 4CVS-2003-11-13 (stable) New Comment: Report this to the pecl bug system: http://pecl.php.net/bugs/ Previous Comments: ------------------------------------------------------------------------ [2003-11-13 08:32:12] friet at eten dot nl Description: ------------ I use printer_draw_text() in a function that divides a string into multiple lines when printing. the strange thing is that some lines are not printed. The main problem is that when calling printer_draw_text() sometimes no data is printed, without any error message or warning. Reproduce code: --------------- reset($arr_words); while(list($int_key, $str_value) = each($arr_words)) { if($int_count + strlen($str_value) >= 35) { printer_draw_text($obj_printer, $str_temp, $int_x_pos_5, $int_y_pos); $int_y_pos += $int_y_step_small; $int_count = strlen($str_value) + 1; $str_temp = $str_value.' '; if($int_key == key($arr_words)) { printer_draw_text($obj_printer, $str_temp, $int_x_pos_5, $int_y_pos); } } else { $str_temp .= $str_value.' '; $int_count += (strlen($str_value) + 1); if($int_key == key($arr_words)) { printer_draw_text($obj_printer, $str_temp, $int_x_pos_5, $int_y_pos); } } } Expected result: ---------------- large string should be printed divided into strings of 35 characters max. Otherwise a new line should be started. Actual result: -------------- Not possible to show, but on printer some calls to printer_draw_text are not printed. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26237&edit=1

« previous php.bugs (#85498) next »