Re: Proposal for updating the PDF-extension
| From: | Boian Bonev | Date: | Wed, 24 Jan 2001 21:30:48 +0000 |
| Subject: | Re: Proposal for updating the PDF-extension | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-44929@lists.php.net to get a copy of this message | ||
hi,
> >There are probably other points which need to be discussed like
> >what a function should return if it fails. Many php functions return
> >false but pdflib's api requires to return -1.
>
> Again, we should be consistant within PHP the language.
> ie. if function fails -> RETURN_FALSE.
>
> IMO.
+1
also you can manage extension global errno and handle errors, provide for
example pdf_str_error(void) or something.
most people need not check all possible cases. on the other side it should
be possible and not only possible but easy.
b.