Re: Bug #888 Updated: Can't compile with use-system-regex=yes

From: Date: Mon, 02 Nov 1998 10:30:54 +0000
Subject: Re: Bug #888 Updated: Can't compile with use-system-regex=yes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-2123@lists.php.net to get a copy of this message
At 09:26 PM 11/1/98 -0000, you wrote: >ID: 888 >Updated by: rasmus >Reported By: afan@jeonet.com >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 Afan afan@jeonet.com -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2123) next »