Re: Mongo Extension Doc Patch
| From: | Hannes Magnusson | Date: | Tue, 10 Mar 2009 19:42:04 +0000 |
| Subject: | Re: Mongo Extension Doc Patch | ||
| References: | 1 2 3 4 5 | Groups: | php.doc php.pecl.dev |
| Request: | Send a blank email to phpdoc+get-969380215@lists.php.net to get a copy of this message | ||
On Tue, Mar 10, 2009 at 18:10, Kristina Chodorow <kristina@10gen.com> wrote:
> I'm using and updating the C code. The C code just has basic functions,
> like "connect to the database" or "query the database." Since I find
> writing
> in PHP a bit quicker than writing in C, I wrote more complex functions in
> PHP, but they still call the C functions to actually interact with the
> database.
>
> I haven't created a PEAR package because PEAR requires the extension to be
> written in just PHP, and the PHP I wrote isn't standalone, it requires the C
> code to work.
>
> Should I create two projects (one PECL, one PEAR)? That doesn't seem to
> make sense, though, as the PHP needs the C to run and the C is annoying to
> use without the PHP.
That is _exactly_ the purpose of PEAR.
Abstract "annoying" tasks to packages. Be it a wrapper for C
extensions (there are *lot* of that kind of packages there) or logic.
PECL is for C code. PEAR is for PHP code.
-Hannes