0 php
为了调试,我在一个方法的if-else-if部分输入了两个回声:
if ( $options instanceof Zend_Config ) {
$options = $options->toArray();
echo "1st condition true<br>";
} else if ( ! is_array($options) ) {
echo "2nd condition true<br>";
exit();
throw new Bvb_Grid_Exception('options must be an instance from Zend_Config or an array');
}
Run Code Online (Sandbox Code Playgroud)
疯狂的是我得到的输出是:
1st condition true
2nd condition true
Run Code Online (Sandbox Code Playgroud)
你能解释一下吗?!?!
| 归档时间: |
|
| 查看次数: |
507 次 |
| 最近记录: |