PCRE wird ohne UTF-Unterstützung kompiliert

jeder! FreeBSD-Neuling auf der Suche nach Hilfe bei der Integration von PCRE und Apache mit mod_php.

Was ich habe:

FreeBSD 8.2-RELEASE-p3Apache / 2.2.22 (FreeBSD, aus Ports erstellt)PHP 5.3.10 mit Suhosin-Patch (cli) (gebaut: 6. April 2012 02:58:27) (nicht von Ports)

PCRE Version 8.30 2012-02-04

<code>Compiled with
  8-bit support only
  UTF-8 support
  Unicode properties support
  No just-in-time compiler support
  Newline sequence is LF
  \R matches all Unicode newlines
  Internal link size = 2
  POSIX malloc threshold = 10
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack
</code>

php -i | grep -i pcre sagt mir, er benutzt die folgende PCRE-Version:

<code>Configure Command =>  './configure'  '--with-layout=GNU' 
                      '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' 
                      '--disable-all' '--enable-libxml' '--enable-mysqlnd' 
                      '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local/lib' 
                      '--with-zlib-dir=/usr' '--program-prefix=' '--with-apxs2=/usr/local/sbin/apxs' 
                      '--with-regex=php' '--with-zend-vm=CALL' 
                      '--enable-zend-multibyte' '--prefix=/usr/local' 
                      '--mandir=/usr/local/man' '--infodir=/usr/local/info/' 
                      '--build=i386-portbld-freebsd8.2'
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.30 2012-02-04
pcre.backtrack_limit => 1000000 => 1000000
pcre.recursion_limit => 100000 => 100000
</code>

Und alles funktioniert gut, wenn ich versuche, meine PHP-Anwendung auf diese Weise von der Kommandozeile aus zu startenphp < somecode.php.

Aber wenn ich es über Apache ausführe, erhalte ich diese Fehlermeldung:Compilation failed: this version of PCRE is compiled without UTF support at offset 0

Ich habe versucht, Apache von Ports mit neu zu erstellen--with-pcre=/usr/local/bin, aber es ist fehlgeschlagen mit der Meldung, dass Apache das pcre-config-Skript nicht finden konnte.

Was könnte falsch sein?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage