我在服务器上安装了oci8。在php.ini中启用扩展。当我运行php --ri oci8
时,我得到了
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 737 in Unknown on line 0
oci8
OCI8 Support => enabled
OCI8 DTrace Support => disabled
OCI8 Version => 2.0.8
Revision => $Id: f04114d4d67cffea4cdc2ed3b7f0229c2caa5016 $
Oracle Run-time Client Library Version => 12.2.0.1.0
Oracle Compile-time Instant Client Version => 12.2
Directive => Local Value => Master Value
oci8.max_persistent => -1 => -1
oci8.persistent_timeout => -1 => -1
oci8.ping_interval => 60 => 60
oci8.privileged_connect => Off => Off
oci8.statement_cache_size => 20 => 20
oci8.default_prefetch => 100 => 100
oci8.old_oci_close_semantics => Off => Off
oci8.connection_class => no value => no value
oci8.events => Off => Off
Statistics =>
Active Persistent Connections => 0
Active Connections => 0
当我运行php --rf oci_connect
时PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 737 in Unknown on line 0
Function [ <internal:oci8> function oci_connect ] {
- Parameters [5] {
Parameter #0 [ <required> $username ]
Parameter #1 [ <required> $password ]
Parameter #2 [ <optional> $connection_string ]
Parameter #3 [ <optional> $character_set ]
Parameter #4 [ <optional> $session_mode ]
}
}
但是当我尝试运行我的应用程序时,我得到调用未定义的函数oci_connect()