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