Re: Adding Midgard support to PHP
| From: | Jim Winstead | Date: | Mon, 26 Jul 1999 17:25:20 +0000 |
| Subject: | Re: Adding Midgard support to PHP | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-9172@lists.php.net to get a copy of this message | ||
I looked briefly at this before, and one problem is that the Midgard
stuff is under the GPL.
With PHP4, it will be easier to distribute third-party extensions to
PHP. I would rather see us moving stuff out of the main distrubtion
rather than adding to it at this point.
Extending the language is a different matter, of course. There's no
built-in way to do that easily.
Jim
Jukka Zitting wrote:
> Perhaps some of you have already noticed the Midgard project that
> released the first version of the Midgard Application Server system in
> early May. Midgard uses PHP as a scripting language and page generation
> engine. The first versions of Midgard used a heavily modified version of
> PHP but nowadays the biggest changes have been separated to another
> Apache module called mod_midgard. In fact the current differences
> between normal PHP and the Midgardized PHP are so small, that I'm
> wondering whether you would be interested in incorporating them to the
> official PHP releases.
>
> Most of the code is located in the files php3_midgard.h and midgard.c
> under the functions subdirectory. The files contain a PHP module called
> "Midgard" that defines quite a number of functions for accessing the
> Midgard database.
>
> Midgard also brings some changes to the PHP language scanner and parser.
> These changes activate the Midgard template codes <[xxx]> and <(xxx)>,
> and the variable expansion code &(xxx);. These codes are intercepted
> from HTML so no changes to the actual PHP syntax have been made. I've
> also tried to make the template codes activate themselves only when
> parsing Midgard pages, but there might still be some points I missed.
>
> There is a patch against the cvs version 3.0.11 of PHP available at:
>
> http://www.midgard-project.org/article/1109.html
>
> Please take a look at it. Comments are welcome.