Hrmfpsd,

while commiting a new functions the parameter parsing API i appearently
brought up a discussion about the meaning of life and stuff :) As asked by
Andi i'm bringing the discussion to php5-dev with a short summary:

andrei's point:
extensions should stick to either functional or oo API
PEAR wrappers can be provided

my point:
extensions should expose both APIs (if desired)
can be done by aliasing functions to class methods -> no duplicate c code
when called as function -> print warning
when called as method -> throw exception

What do you guys think of this ?

regards,
Harald Radi
--
nme - we can heal you
http://www.nme.at

Ortner Radi Schwenk GnbR
Tumpenweg 528
5084 Grossgmain, Salzburg
Austria 

> -----Original Message-----
> From: Andi Gutmans [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 03, 2003 9:10 PM
> To: Harald Radi; 'Andrei Zmievski'
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] RE: zend_API.c
> 
> 
> Hey,
> 
> I think the discussion you guys are having is much broader than just 
> mysqli. We should probably come up with a general approach 
> which we will 
> use consistently for PHP 5.
> I suggest we move this discussion to the PHP 5 dev list and 
> try and come up 
> with a good solution. Obviously we will keep the functional 
> support for all 
> extensions like PHP 4. The only question is, if and how we 
> support an OO 
> paradigm.
> 
> Andi
> 
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to