Re: Midgard (Was: cvs: php4 /ext/midgard .cvsignore...)
| From: | Andi Gutmans | Date: | Tue, 13 Feb 2001 05:40:12 +0000 |
| Subject: | Re: Midgard (Was: cvs: php4 /ext/midgard .cvsignore...) | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-46463@lists.php.net to get a copy of this message | ||
At 10:18 PM 2/12/2001 +0100, Emiliano wrote:
Sebastian Bergmann wrote: Emiliano wrote:Well right now it won't really solve it because pear is included in the distribution. However, the idea behind pear is to be something more similar to CPAN which means both PHP and C code.But PEAR is a repository for scripts written in PHP, right?PHP Extension and Add-On Repository. Extensions and Add-Ons, written in either PHP or C, are welcome :-) OK, my mistake. So moving php4/ext/midgard to php4/pear/midgard would solve this?
Does the build process differ here? And like my previous question, are there examples on how to build config.m4s, and other supportive files, so an extension can easily be built as an php-dloabable, a static extension, and a static extension in a statically-compiled PHP (into Apache itself)?The easiest way to get it working is "cd php4; cp -r /path/to/midgard ext; ./buildconf". That's all people need to do in order to get it to work with their vanilla PHP. You can check out some of the other extensions to see how to build a shared library but with my example it's not necessary. There is also the phpize stuff (which I don't know). It's something like phpize /path/to/midgard and then compiling the midgard as a shared library. I think the first example I gave you is probably good enough though. Andi