Date: 11/02/98
- Next message: agarcia <email protected>: "[PHP-DEV] Bug #891: revert functions for htmlspecialchars and htmlentities"
- Previous message: Bug Database: "[PHP-DEV] Bug #890 Updated: Linking PHP into Apache fails"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Re: Bug #888 Updated: Can't compile with use-system-regex=yes"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Re: Bug #888 Updated: Can't compile with use-system-regex=yes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 09:26 PM 11/1/98 -0000, you wrote:
>ID: 888
>Updated by: rasmus
>Reported By: afan <email protected>
>Status: Closed
>Bug Type: Compile Failure
>Assigned To:
>Comments:
>
>There is an Apache dependancy here. When you first configure Apache it >creates an ap_config.h file which PHP includes. This ap_config.h file will
>include the Apache regex library by default. So, in order to use your
>system's regex library you will have to first configure Apache to use that
>library. ie. build Apache once without PHP and make sure you build it such
>that it uses your system's regex lib. Then, once that works, configure and
>build PHP with your system regex library and then rebuild Apache with PHP
>support.
>
>By the way, did you have a specific reason for wanting to use your system's
>regex library? There are a couple of performance advantages to using the
>built-in one because when the system regex is used we go for maximum
>portability and do not make use of some of the shortcuts available in the
>built-in library.
Thanks! I got past the regex errors.
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.
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.
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
-- 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>
- Next message: agarcia <email protected>: "[PHP-DEV] Bug #891: revert functions for htmlspecialchars and htmlentities"
- Previous message: Bug Database: "[PHP-DEV] Bug #890 Updated: Linking PHP into Apache fails"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] Re: Bug #888 Updated: Can't compile with use-system-regex=yes"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] Re: Bug #888 Updated: Can't compile with use-system-regex=yes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

