-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yaf ini加载的配置文件,使用运算符??返回结果错误 #422
Comments
回避吧 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
($cfg[$cfg['def_db']]['w'][1]['host'])??'localhost' 返回localhost
($cfg[$cfg['def_db']]['w'][1])??'localhost' 返回 localhost
而$cfg[$cfg['def_db']]['w'][1]['host']===‘mongodb’,$cfg[$cfg['def_db']]['w'][1]===yafConfig的对象
mac os x php 7.2.1的条件下出现
$cfg是yaf ini加载的config,$cfg[$cfg['def_db']]['w'][1]['host']==='mongo' 存在的情况下,返回却是localhost
换成$cfg=$cfg->toArray() 执行上面代码 都返回正确
The text was updated successfully, but these errors were encountered: