Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#298 closed defect (invalid)

3.01版本安装在iis下,与zend optimizer有冲突,请问如何解决

Reported by: hardnet Owned by: moo
Priority: blocker Milestone:
Component: admin Version: 3.0.1
Keywords: Cc:
Application: discuz x2.5 PHP Version: 5.2.17
Other Exts: SAPI: Irrelevant
Probability: Always Blocked By:
Blocking:

Description

如果在zend之前加载php_xcache.dll的话,phpinfo()里显示没有加载zend optimizer,如果在zend之后加载php_xcache.dll的话,php程序打开会提示错误

Change History (4)

comment:1 Changed 19 months ago by moo

如今不存在“在Zend Optimizer之后加载”了,必须使用extension=php_xcache.dll来加载,无论放在哪里都比zend_extension=*要优先。请贴出您的ini涉案部分,以及phpinfo的输出

comment:2 Changed 19 months ago by hardnet

部分php.ini
[xcache-common]
extension = php_xcache.dll

[xcache.admin]
xcache.admin.enable_auth = off
xcache.admin.user = "mOo"
; set xcache.admin.pass = md5($your_password)
; login use $your_password
xcache.admin.pass = ""

[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 60M
xcache.count = 1
xcache.slots = 8K
xcache.ttl = 0
xcache.gc_interval = 0

xcache.var_size = 4M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_maxttl = 0
xcache.var_gc_interval = 300

xcache.var_namespace_mode = 0
xcache.var_namespace = ""

xcache.readonly_protection = Off
xcache.mmap_path = xcache"

xcache.coredump_directory = ""
xcache.coredump_type = 0
xcache.disable_on_crash = Off
xcache.experimental = Off

xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off

[Zend]
zend_extension_manager.optimizer_ts="C:\Program Files\Zend\ZendOptimizer?-3.3.0\lib\Optimizer-3.3.0"
zend_extension_ts="C:\Program Files\Zend\ZendOptimizer?-3.3.0\lib\ZendExtensionManager?.dll"

phpinfo输出显示没有加载Zend Optimizer:
http://www.nbpay.com/phpinfo.php

comment:3 Changed 19 months ago by moo

  • Resolution set to invalid
  • Status changed from new to closed

在您的地址里搜索 xcache.mmap_path 您就会发现奇怪的地方。因为
xcache.mmap_path = xcache" <- 这里少了个引号

comment:4 Changed 19 months ago by hardnet

嗯,是我的失误,但是改为xcache.mmap_path = "xcache"之后重启IIS,会出现程序池自动关闭的情况,http://www.nbpay.com/phpinfo.php这个地址都打不开了。。

Note: See TracTickets for help on using tickets.