OO in PHP5 (was "zend_API.c" on php-dev)
| From: | Harald Radi | Date: | Mon, 03 Feb 2003 20:20:31 +0000 |
| Subject: | OO in PHP5 (was "zend_API.c" on php-dev) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93966@lists.php.net to get a copy of this message | ||
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:andi@zend.com]
> Sent: Monday, February 03, 2003 9:10 PM
> To: Harald Radi; 'Andrei Zmievski'
> Cc: php-dev@lists.php.net
> 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
>
>