Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Boian Bonev
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. > >

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Rasmus Lerdorf
> I agree. PHP doesn't need to map the C API's one-to-one but implement PHP > functions in the PHP spirit and in a consistent way. That consistent way is > returning false. > We've talked about this numerous times. When we implement an extension > module for a C library we don't even necessarily n

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Andi Gutmans
At 05:43 PM 1/24/2001 +0200, Jani Taskinen wrote: >On Wed, 24 Jan 2001, Uwe Steinmann wrote: > > >On Wed, Jan 24, 2001 at 03:07:09PM +0100, Cynic wrote: > >> confuse folks. and the consensus (at least I got it it's agreed > >> on) is pdf_add_local_link-like names. > >>From the php point of view th

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Rainer Schaaf
Jani Taskinen wrote: > On Wed, 24 Jan 2001, Uwe Steinmann wrote: > > >On Wed, Jan 24, 2001 at 03:07:09PM +0100, Cynic wrote: > >> confuse folks. and the consensus (at least I got it it's agreed > >> on) is pdf_add_local_link-like names. > >>From the php point of view there should be underscores

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Rasmus Lerdorf
As far as I am concerned this is Uwe's decision to make. I would be happy to see you guys have direct CVS access to maintain this extension and make whatever changes you deem necessary. Uwe? Many of the things you mention are things people have been asking for, and if it can't be implemented wi

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Jani Taskinen
On Wed, 24 Jan 2001, Uwe Steinmann wrote: >On Wed, Jan 24, 2001 at 03:07:09PM +0100, Cynic wrote: >> confuse folks. and the consensus (at least I got it it's agreed >> on) is pdf_add_local_link-like names. >>From the php point of view there should be underscores but >the pdflib api doesn't use th

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Cynic
+1 for PHP way on both questions. The language should be consistent. I think one of the goals - a major one - of PHP (or any other programming language, for that matter) should be: provide a single, consistent interface to many different areas of programmer's life. In other words, I think consi

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Uwe Steinmann
On Wed, Jan 24, 2001 at 03:07:09PM +0100, Cynic wrote: > maybe they should be pdf_find_font, pdf_add_local_link etc? > that would be more consistent with the func-naming convention, > I guess, but I'm in no position to decide this. > but I definitely think that it should be either underscore > e

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Cynic
maybe they should be pdf_find_font, pdf_add_local_link etc? that would be more consistent with the func-naming convention, I guess, but I'm in no position to decide this. but I definitely think that it should be either underscore everywhere, or just between the ext. prefix and the rest of the n

[PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Rainer Schaaf
Hello, I'm a new employee at PDFlib GmbH. Our company decided to improve and support the PHP-extension for PDFlib as soon as possible. Therefore I contacted Uwe Steinman the maintainer of this extension. He suggested to discuss with the list, where to put the changes I'm doing. Uwe offered to br