使用未定义的常量OCI_CRED_EXT-假定为'OCI_CRED_EXT'laravel [英] Use of undefined constant OCI_CRED_EXT - assumed 'OCI_CRED_EXT' laravel

查看:212
本文介绍了使用未定义的常量OCI_CRED_EXT-假定为'OCI_CRED_EXT'laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下软件包将oracle数据库连接到我的laravel应用程序:

I'm trying to connect oracle database to my laravel application using this package: https://github.com/yajra/laravel-oci8 but having error with the external connection, this is the error:

这是软件包中的错误行:

Here the line of error in package: https://github.com/yajra/laravel-oci8/blob/5.8/src/Oci8/Connectors/OracleConnector.php#L35

  • 操作系统: macOS Mojave版本10.14.4(18E226)
  • PHP版本: 7.3
  • Laravel版本: 5.8.*
  • Laravel-OCI8版本: 5.8.*

任何人都可以帮助我吗?

Anyone can help me please?

推荐答案

好像缺少OCI8扩展的预定义常量.确保OCI8扩展名是

Looks like the predefined constants for your OCI8 extension is missing. Make sure that the OCI8 extension was either

  1. 已正确编译为PHP(请参见在运行时动态加载.您可以在脚本中检查此内容,并在此处显示如何执行此操作的示例:https://www.sitepoint.com/php-extension-not-loaded/

    Dynamically loaded at runtime. You can check this in your script and an example of how to do this is shown here: https://www.sitepoint.com/php-extension-not-loaded/

    这篇关于使用未定义的常量OCI_CRED_EXT-假定为'OCI_CRED_EXT'laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆