Re: [PHP-DEV] Re: Bug #888 Updated: Can't compile with use-system-regex=yes From: Rasmus Lerdorf (rasmus <email protected>)
Date: 11/02/98

> The reason I wanted to use the system regex library is
> I wanted to compile both PHP2 and PHP3 as modules in Apache,
> however, the regex libraries seem to be different in PHP2, PHP3, and
> Apache. I believe it is stated a number of times how important it is to
> use the same library.

No, they are not different. If you specify the built-in library when
building PHP2, it will be the same one.

> Also, on the Slackware system when I compiled
> (PHP2.0.1, PHP3.0.3, and Apache 1.3.1) using the PHP included regex,
> the ereg_replace and other ereg commands acted funny under the PHP2.
> It was probably my fault for not being careful about which regex went where,
> but in any case, using the system regex eliminated that problem.

Hrm.. I can't explain that.

> With your comment, PHP2.0.1, PHP3.0.5, and Apache 1.3.3 I went ahead and
> tried it with the included regex library. It seems to be working.
>
> I rewrote the file php2.php3 to explain what I did for
> PHP2.0.1, PHP3.0.5, and Apache 1.3.3. It is at
> http://www.jeo.net/php/both.htm

Apart from copying the PHP3 regex to PHP2, this explanation looks pretty
good. If you compare those two regex directories you will see that they
are virtually identical and there should be no need to copy it over.

-Rasmus

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>