因一个网站功能,昨天升级了服务器的php到5.3.27,用的是wdlinux的lanmp,安装之后启动apache或者php -v会报错:
Cannot load Zend Extension Manager - it was built with configuration 1.2.0,
而且,所有的*.tpl.php都不正常,比如index.tpl.php页面里有如下脚本:
<frame src="<?=u('index','top')?>" noresize="noresize" frameborder="no" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" /> <frameset cols="200,*" id="frame"> <frame src="<?=u('index','left')?>" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" target="main" /> <frame src="<?=u($_GET['go_mod'],$_GET['go_act'])?>" name="main" noresize="noresize" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" target="_self" /> </frameset>
;zend_extension_manager.optimizer=/www/wdlinux/Zend/lib/Optimizer-3.3.3;zend_extension_manager.optimizer_ts=/www/wdlinux/Zend/lib/Optimizer_TS-3.3.3;zend_optimizer.version=3.3.3;zend_extension=/www/wdlinux/Zend/lib/ZendExtensionManager.so;zend_extension_ts=/www/wdlinux/Zend/lib/ZendExtensionManager_TS.sozend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.sozend_loader.enable = 1
php.ini
short_open_tag = On
干脆升到 php5.4.21
无论 short_open_tag 怎么设置都支持 = ?>
php.ini
short_open_tag = On
干脆升到 php5.4.21
无论 short_open_tag 怎么设置都支持 = ?>