RE: [PHP-DOC] printer_open() documentation error

2005-03-29 Thread Greg Jackson
Thanks Philip for the quick response! You're right, since my original post I found that it will return NULL or FALSE under different conditions. If the printer doesn't exist I get FALSE. I'm getting NULL for a valid printer that is for some reason refusing the connection. So I guess it is a bug,

Re: [PHP-DOC] printer_open() documentation error

2005-03-29 Thread Philip Olson
Hello! I don't really have an answer except that according to the source here: http://lxr.php.net/source/pecl/printer/printer.c#256 It can return false but also has a chance to return nothing which doesn't seem like a good idea. That is, if the following condition fails nothing happens: if (D

[PHP-DOC] printer_open() documentation error

2005-03-29 Thread Greg Jackson
Hi I'm not sure if this is a documentation error or a bug in php_printer.dll but here goes... printer_open() is returning NULL upon failure, not FALSE i.e. the following code doesn't work: This does: Version info: PHP 4.3.10 (cli) (built: Dec 14 2004 17:48:04) php_printer.dll 29-Ma