本文整理汇总了PHP中zend_optimizer_version函数的典型用法代码示例。如果您正苦于以下问题:PHP zend_optimizer_version函数的具体用法?PHP zend_optimizer_version怎么用?PHP zend_optimizer_version使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zend_optimizer_version函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
<?php
$PHP_VERSION = PHP_VERSION;
$PHP_VERSION = substr($PHP_VERSION, 2, 1);
if ($PHP_VERSION > 2) {
echo "ZendGuardLoader[启用]";
} else {
echo "Zend Optimizer";
}
?>
</td>
<td width="18%"><?php
if ($PHP_VERSION > 2) {
echo get_cfg_var("zend_loader.enable") ? '<font color=green>√</font>' : '<font color=red>×</font>';
} else {
if (function_exists('zend_optimizer_version')) {
echo zend_optimizer_version();
} else {
echo get_cfg_var("zend_optimizer.optimization_level") || get_cfg_var("zend_extension_manager.optimizer_ts") || get_cfg_var("zend.ze1_compatibility_mode") || get_cfg_var("zend_extension_ts") ? '<font color=green>√</font>' : '<font color=red>×</font>';
}
}
?>
</td>
</tr>
<tr>
<td>eAccelerator</td>
<td><?php
if (phpversion('eAccelerator') != '') {
echo phpversion('eAccelerator');
} else {
echo "<font color=red>×</font>";
}
示例2: test_loader_zend
/**
* Check Zend Optimizer version
*/
private function test_loader_zend()
{
if (extension_loaded('Zend Optimizer') && $this->function_usable('zend_optimizer_version')) {
if (version_compare(zend_optimizer_version(), '3.3.3') < 0) {
$this->warnings[__METHOD__][] = 'You have an old version of Zend Optimizer (earlier than 3.3.3) which is known to cause problems with PHP scripts.';
}
}
}
示例3: GetZendInfo
public function GetZendInfo()
{
$zendInfo = array();
$zendInfo['ver'] = zend_version() ? zend_version() : '<font color=red>×</font>';
$phpv = substr(PHP_VERSION, 2, 1);
$zendInfo['loader'] = $phpv > 2 ? 'ZendGuardLoader[启用]' : 'Zend Optimizer';
if ($phpv > 2) {
$zendInfo['html'] = get_cfg_var("zend_loader.enable") ? '<font color=green>√</font>' : '<font color=red>×</font>';
} elseif (function_exists('zend_optimizer_version')) {
$zendInfo['html'] = zend_optimizer_version();
} else {
$zendInfo['html'] = get_cfg_var("zend_optimizer.optimization_level") || get_cfg_var("zend_extension_manager.optimizer_ts") || get_cfg_var("zend.ze1_compatibility_mode") || get_cfg_var("zend_extension_ts") ? '<font color=green>√</font>' : '<font color=red>×</font>';
}
return $zendInfo;
}
示例4: if
<th class="w_top"><a href="http://www.yahei.net/tz/tz.zip">探针下载</a></th>
</tr>
</table>
<!--服务器相关参数-->
<table>
<tr><th colspan="4">服务器参数</th></tr>
<tr>
<td>服务器域名/IP地址</td>
<td colspan="3"><?php echo @get_current_user();?> - <?php echo $_SERVER['SERVER_NAME'];?>(<?php if('/'==DIRECTORY_SEPARATOR){echo $_SERVER['SERVER_ADDR'];}else{echo @gethostbyname($_SERVER['SERVER_NAME']);} ?>) 你的IP地址是:<?php echo @$_SERVER['REMOTE_ADDR'];?></td>
</tr>
<tr>
<td>服务器标识</td>
<td colspan="3"><?php if($sysInfo['win_n'] != ''){echo $sysInfo['win_n'];}else{echo @php_uname();};?></td>
</tr>
<tr>
<td width="13%">服务器操作系统</td>