ID: 11884
Updated by: dbeu
Reported By: [EMAIL PROTECTED]
Old-Status: Assigned
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.4
Assigned To: dbeu
Comments:

a crash bug (i could reproduce) is be fixed in cvs.
(please also check your printer driver setup!)
you should also consider using printer_draw_text instead of printer_write (which is 
used for raw printer data only), see 
http://php.net/manual/en/function.printer-select-font.php for an example.
if you need printer_write you may need to change the datatype:
printer_set_option($handle, PRINTER_MODE, "RAW");

Previous Comments:
---------------------------------------------------------------------------

[2001-07-06 03:47:13] [EMAIL PROTECTED]

I'm assigning this to you Daniel, as you are the maintainer of this extension.

Derick

---------------------------------------------------------------------------

[2001-07-05 16:17:06] [EMAIL PROTECTED]

Hi Derick

Yes, it not works, now i trying without a argument in the printer_open() function, and 
i dont see the error again, but i see the following words

Warning: couldn't allocate the printerjob in c:archivos de programaapache 
groupapachehtdocsavances1porfetelimpresiones.php on line 9

and my program is :

$handle = printer_open("Epson");
$HOLA="Esta es una pryueba";

printer_start_doc($handle,$HOLA,$HOLA);
printer_start_page($handle);
echo "hola";
printer_write($handle, "Text to print");
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
       
Now, how you see i configurate the php.ini whit a printer.default_printer       =  
Epson

plase Helpme

---------------------------------------------------------------------------

[2001-07-04 15:36:54] [EMAIL PROTECTED]

So it works without a printername, like printer_open(); and it does not work like 
this: printer_open("HP Deskjet 840C"); ?

Derick

---------------------------------------------------------------------------

[2001-07-04 15:30:32] [EMAIL PROTECTED]

Hi Derick

yes iŽam very shure of that, i am really have a default printer instaled
in this php server..

When i put a invalid name in the printer_open(X), i mean a name thats no
exists how printer in my computer. i see a warning, but if i put a valid
name how HP804C my copmuter stop PHP, please helpme Derick, i need to
use this function in my aplication.

Sorry by my english, if you know who can help me in spanish please
contactme with he.


---------------------------------------------------------------------------

[2001-07-04 14:52:52] [EMAIL PROTECTED]

Are you sure you have a default printer installed?

Derick

---------------------------------------------------------------------------

The remainder of the comments for this report are too long.
To view the rest of the comments, please
view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11884&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to