php编译时pcre的作用,php – PCRE编译时没有UTF支持

大家! FreeBSD noobie寻求一些帮助,将PCRE和Apache与mod_php集成在一起.

我拥有的:

> FreeBSD 8.2-RELEASE-p3

> Apache / 2.2.22(FreeBSD,从端口构建)

> PHP 5.3.10 with Suhosin-Patch(cli)(内置:2012年4月6日02:58:27)(不是来自端口)

> PCRE版本8.30 2012-02-04

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

php -i | grep -i pcre告诉我,他使用下面的PCRE版本:

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

一切正常,当我尝试从命令行运行我的php应用程序时,以这种方式运行php< somecode.php. 但是当我通过apache执行它时,我收到此错误:编译失败:此版本的PCRE在偏移0处编译时没有UTF支持 我尝试使用–with-pcre = /usr/local / bin从端口重建apache,但是失败的消息是apache无法找到pcre-config脚本. 什么可能是错的?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值