我已经看到这种情况发生在一些扩展中。所以我需要扩展名为php_pdo_pgsql,并且它肯定会加载。继承人在php.ini中的台词:PHP - 扩展程序已加载,但尚未加载到命令行中
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
的.dll文件都在ext目录。但从命令行:
PS C:\wamp64\www\spider\chebi> php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
它不在那里。与xdebug有同样的问题。有谁知道这里发生了什么?这与环境变量有关吗?
[2个的php.ini文件(可能的复制http://stackoverflow.com/questions/3871768/2-php-ini-files) – lxg