【友情提醒】oracle.php中还有一个小问题,请官方再看一下

浏览:436 发布日期:2016/02/14 分类:求助交流
TP5.0 RC1版 (2016-02-12 20:16版)

在本机(环境为:windows、wamp)链接ORACLE时正常,转移到LINUX服务器上测试时异常(环境为:ubuntu 1410 64 ng+php5.6),出错信息为:



发现文件“thinkphp\library\think\db\driver\Oracle.php”的 35行为$dsn = 'oci:dbname=' . $config['database'];此写法并非是ORACLE的DSN写法,对比TP3.2.3将此行改为:$dsn = 'oci:dbname=//' . $config['hostname'] . ($config['hostport'] ? ':' . $config['hostport'] : '') . '/' . $config['database'];问题解决。

请官方修正,多谢。
最佳答案
评论( 相关
后面还有条评论,点击查看>>