You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a simple script for reproducing the error.
在使用协程进行PDO MySQL连接池操作的时候,前面执行了很多操作都没有问题,中间突然报错,说参数不正确和文件不存在
What did you expect to see?
成功执行
What did you see instead? Uncaught Error: Wrong parameters for PDOException([string $message [, long $code [, Throwable $previous = NULL]]]) in @swoole-src/library/core/Database/PDOStatementProxy.php:70
What version of Swoole are you using (show your php --ri swoole)?
4.6.4
What is your machine environment used (show your uname -a & php -v & gcc -v) ?
20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.16)
错误输出:
PHP Fatal error: Uncaught Error: Wrong parameters for PDOException([string $message [, long $code [, Throwable $previous = NULL]]]) in @swoole-src/library/core/Database/PDOStatementProxy.php:70
Stack trace:
#0 @swoole-src/library/core/Database/PDOStatementProxy.php(70): Exception->__construct(NULL, NULL)
#1 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(758): Swoole\Database\PDOStatementProxy->__call('execute', Array)
#2 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(275): App\Console\Commands\BinanceSimulationWithoutSaveBoll->_findGoodParams(Object(Swoole\Database\PDOProxy), 'DOGEUSDT', '15m', 'test', 1618329600, NULL, false)
#3 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(256): App\Console\Commands\BinanceSimulationWithoutSaveBoll->_simulation(Object(Swoole\Database\PDOProxy), 'DOGEUSDT', '15m', 'test', 1618329600, NULL, false)
#4 {main}
thrown in @swoole-src/library/core/Database/PDOStatementProxy.php on line 70
Symfony\Component\Debug\Exception\FatalErrorException : Uncaught Error: Wrong parameters for PDOException([string $message [, long $code [, Throwable $previous = NULL]]]) in @swoole-src/library/core/Database/PDOStatementProxy.php:70
Stack trace:
#0 @swoole-src/library/core/Database/PDOStatementProxy.php(70): Exception->__construct(NULL, NULL)
#1 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(758): Swoole\Database\PDOStatementProxy->__call('execute', Array)
#2 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(275): App\Console\Commands\BinanceSimulationWithoutSaveBoll->_findGoodParams(Object(Swoole\Database\PDOProxy), 'DOGEUSDT', '15m', 'test', 1618329600, NULL, false)
#3 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(256): App\Console\Commands\BinanceSimulationWithoutSaveBoll->_simulation(Object(Swoole\Database\PDOProxy), 'DOGEUSDT', '15m', 'test', 1618329600, NULL, false)
#4 {main}
thrown
at @swoole-src/library/core/Database/PDOStatementProxy.php:70
Whoops\Exception\ErrorException : Uncaught Error: Wrong parameters for PDOException([string $message [, long $code [, Throwable $previous = NULL]]]) in @swoole-src/library/core/Database/PDOStatementProxy.php:70
Stack trace:
#0 @swoole-src/library/core/Database/PDOStatementProxy.php(70): Exception->__construct(NULL, NULL)
#1 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(758): Swoole\Database\PDOStatementProxy->__call('execute', Array)
#2 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(275): App\Console\Commands\BinanceSimulationWithoutSaveBoll->_findGoodParams(Object(Swoole\Database\PDOProxy), 'DOGEUSDT', '15m', 'test', 1618329600, NULL, false)
#3 /Users/edison/code/php/swoole/app/Console/Commands/BinanceSimulationWithoutSaveBoll.php(256): App\Console\Commands\BinanceSimulationWithoutSaveBoll->_simulation(Object(Swoole\Database\PDOProxy), 'DOGEUSDT', '15m', 'test', 1618329600, NULL, false)
#4 {main}
thrown
at @swoole-src/library/core/Database/PDOStatementProxy.php:70
Whoops\Exception\ErrorException : file_get_contents(@swoole-src/library/core/Database/PDOStatementProxy.php): failed to open stream: No such file or directory
The text was updated successfully, but these errors were encountered:
twose
added a commit
to swoole/library
that referenced
this issue
Apr 27, 2021
Please answer these questions before submitting your issue. Thanks!
What did you do? If possible, provide a simple script for reproducing the error.
在使用协程进行PDO MySQL连接池操作的时候,前面执行了很多操作都没有问题,中间突然报错,说参数不正确和文件不存在
What did you expect to see?
成功执行
What did you see instead?
Uncaught Error: Wrong parameters for PDOException([string $message [, long $code [, Throwable $previous = NULL]]]) in @swoole-src/library/core/Database/PDOStatementProxy.php:70
What version of Swoole are you using (show your
php --ri swoole
)?4.6.4
What is your machine environment used (show your
uname -a
&php -v
&gcc -v
) ?20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
PHP 7.4.16 (cli) (built: Apr 25 2021 08:59:39) ( NTS )
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.16)
错误输出:
The text was updated successfully, but these errors were encountered: