根据这个操作的: http://www.jianshu.com/p/152d45913b76
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\wamp64\www\1\1.php on line 12 Oracle 连接失败
这个是系统变量:
C:\Users\zgx>echo %path%
C:\instantclient_12_2;c:\app\zgx\product\11.2.0\client_1\bin;C:\oc\product\12.2. 0\client_1\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C: \Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;C:\Windows\system32;C:\W indows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\P rogram Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microso ft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn ;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE ;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Users\zgx\AppData \Local\Programs\Fiddler
PHP 7.19
OCI8 Support enabled OCI8 DTrace Support disabled OCI8 Version 2.1.8 Revision $Id: 8a26cf66ca0f9556b6376408c8f71ead69bdbcbf $ Oracle Run-time Client Library Version 0.0.0.0.0 Oracle Compile-time Instant Client Version 12.1 Directive Local Value Master Value oci8.connection_class no value no value oci8.default_prefetch 100 100 oci8.events Off Off oci8.max_persistent -1 -1 oci8.old_oci_close_semantics Off Off oci8.persistent_timeout -1 -1 oci8.ping_interval 60 60 oci8.privileged_connect Off Off oci8.statement_cache_size 20 20