Re: OO in PHP5 (was "zend_API.c" on php-dev)

From: Date: Mon, 03 Feb 2003 20:41:18 +0000
Subject: Re: OO in PHP5 (was "zend_API.c" on php-dev)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93969@lists.php.net to get a copy of this message
On Monday, February 3, 2003, at 03:20 PM, Harald Radi wrote:
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 ?
I like your method. I've implemented it for a coupe extensions (except for the exception vs. error thing), and I found it to be quite manageable and very little work.
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#93969) next »