openswoole / ext-openswoole

Programmatic server for PHP with async IO, coroutines and fibers

Home Page:https://openswoole.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

\Swoole\Database\PDOConfig class not found @ 22.0.0

yespire opened this issue · comments

  1. What did you do? If possible, provide a simple script for reproducing the error.
var_dump(class_exists('\Swoole\Database\PDOConfig'));

  1. What did you expect to see?
TRUE

  1. What did you see instead?
FALSE

  1. What version of OpenSwoole are you using (show your php --ri openswoole)?
openswoole 22.0.0  stable

installed with:
enable sockets supports? [no] : yes
enable openssl support? [no] : yes --with-openssl-dir=/opt/homebrew/opt/openssl
enable http2 support? [no] : yes
enable mysqlnd support? [no] : yes
enable hook curl support? [no] : yes
enable postgres support? [no] :

  1. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
Darwin loc-ye 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64

Still class not-existing error
I tried the on Centos and Mac, here is my test code:

var_dump("OpenSwoole class: " . (int)class_exists('\OpenSwoole\Core\Coroutine\Pool\ClientPool'));

Output:

OpenSwoole class: 0

You have to install openswoole/core library.