Re: Package Scope Recommendations for File_Ogg

From: Date: Thu, 14 Aug 2003 13:39:54 +0000
Subject: Re: Package Scope Recommendations for File_Ogg
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19736@lists.php.net to get a copy of this message
> Patrick O'Lone wrote: >> Wouldn't this be easier to write as a PECL extension using the native C >> API? There's open source libraries for libogg, libvorbis, and >> libvorbisfile which could be quickly integrated using a PECL extension. > > It is no problem to have an PECL- and a PEAR-Package for the same > subject. The only requirement is that the PEAR-Package should use the > API of the Extension, if installed. Having just looked back, I think I may have misunderstood your original message. Do you mean that the PEAR class should utilise the PECL extension if it exists? I believed you to mean that they must share a common API. I guess if the PECL class exists, then it would make sense to use a C-based solution, as it will be naturally faster than a PHP solution. However, Stefan's points about the libraries are good, so I will continue with the PEAR-based solution. Is there a standard method for detecting PECL extensions? Is it the same method as regular PHP extensions? Regards, David

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