Re: Re: ext/imagick BC break (was: Re: [PEAR-DEV] PHP Magick version 0.5a Released!)

From: Date: Wed, 27 Nov 2002 10:04:06 +0000
Subject: Re: Re: ext/imagick BC break (was: Re: [PEAR-DEV] PHP Magick version 0.5a Released!)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11163@lists.php.net to get a copy of this message
On Tue, 2002-11-26 at 17:39, Michael Montero wrote: > Just so we're not discussing a lot of issues on the wishlist, what do > people really think? A lot of effort has gone into the current module and > it seems very near a good, stable point. However, I would invest the time > rewriting it if everyone felt that was _necessary_ for a better first > release. A few questions: > > 1) how difficult is it to provide both? In other words, can we write the > OO version next and then phase out support for the non-OO version? It's very easy. Example: function_entry pear_functions[] = { PHP_FALIAS(is_error, PEAR_isError, NULL) {NULL, NULL, NULL} }; static zend_function_entry php_class_functions_pear[] = { ... PHP_FALIAS(iserror, PEAR_isError, NULL) ... {NULL, NULL, NULL} }; However, there's nothing stopping you from using classes as a namespace without making objects: $handle = imagick::readimage('foo.jpg'); - Stig > 2) are the savings/advantages so great that it's worth saying this version > was just a fun experiment to make sure it can be done and now let's write > it OO and release? > > I've gotten a lot of feedback from people that are hungry for something > yesterday. I know I am. I believe this module is in great shape and can > provide the functionality these users need. In fact, I intend to deploy > this in production in the next week (probably after holidays) once the > image list support is done. > > I defer to the list. > > On Tue, 26 Nov 2002, George Schlossnagle wrote: > > > I should probably make Michael num 2, and you number 3. I will change > > the (currently purely procedural) spread interface to be oo. Some > > decent (though lengthy) examples are also in > > sapi/apache_hooks/php_apache.c (in HEAD), where the apache request > > functions are implemented as methods. > > > > > > > > Pierre-Alain Joye wrote: > > > > >On Tue, 26 Nov 2002 11:00:32 -0500 > > >George Schlossnagle <george@omniti.com> wrote: > > > > > >>Sorry to make you the first victim of my new crusade.... :) > > >> > > > > > >I ll be proud to be the 2nd :-). Do you have some nice commented sources > > >available ? I currently starting 2 new extensions and really think about > > >it too, but came back to classic function. > > > > > >pierre > > > > > > > > > > > > > -- > Michael C. Montero > Chief Technology Officer > Community Connect Inc. Co-founder > MMontero@Mail.CommunityConnect.com > > -=-=-=-=-= Community Connect Inc. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > The Premier Source of Interactive Online Communities 149 Fifth Avenue > http://www.CommunityConnectInc.com/ New > York, NY 10010 > > http://www.AsianAvenue.com/ > http://www.BlackPlanet.com/ > Click into Asian America The World Is Yours > > http://www.MiGente.com/ > http://www.DiversityJobMarket.com/ > The Power of Latinos In partnership with The New > York Times > > ----- Your Message May Appear Below This Line > >

« previous php.pear.dev (#11163) next »