使用未定义的常量INTL_ICU_VERSION - 假设为'INTL_ICU_VERSION
Yii Framework / 2.0.7
$ checks [] = array( 'title'=> Yii :: t('base',$ title), 'state'=> '错误', '提示'=> '安装INTL扩展' ); }
$icuVersion = (defined('INTL_ICU_VERSION')) ? INTL_ICU_VERSION : 0; $icuMinVersion = '4.8.1'; $title = 'PHP - INTL Extension - ICU Version (' . INTL_ICU_VERSION . ')'; if (version_compare($icuVersion, $icuMinVersion, '>=')) { $checks[] = array( 'title' => Yii::t('base', $title), 'state' => 'OK' ); } else { $checks[] = array( 'title' => Yii::t('base', $title), 'state' => 'WARNING' 'hint' => 'Install INTL Extension' ); } $icuVersion = (defined('INTL_ICU_VERSION')) ? INTL_ICU_VERSION : 0; $icuMinVersion = '4.8.1'; $title = 'PHP - INTL Extension - ICU Version (' . INTL_ICU_VERSION . ')'; if (version_compare($icuVersion, $icuMinVersion, '>=')) { $checks[] = array( 'title' => Yii::t('base', $title), 'state' => 'OK' ); } else {