-
我使用的php版本是8.3,swoole版本是5.1.3,同时在编译时加入了--with-swoole-oracle,在实际业务过程中使用了协程化的pdo_oci来处理业务,我的意图是模拟一个简单的数据库连接池,并同时开启了几个协程,来处理同一个事务内容,如下code所示,每个协程内的主要处理过程是:
1.开启一个事务
2.使用for update锁定订单号E0109582对应的行数据
3.…
-
I've been fighting all day with this and hope someone in the community can explain why this is such a huge hassle.
The official Laravel Sail dockerfile is built from Ubuntu, which I gather does not…
-
I am currently developing a TCP server using PHP Swoole and implementing a backend based on the MTProto protocol. In this setup, clients send an initial packet structured as {[Key, IV] + [Data Length]…
-
### 👟 Reproduction steps
I am trying to create a new function for Node 18, with a new repo on my github. What ever i try to do, i keep getting an error on the build log
### 👍 Expected behavior
Crea…
-
### install.sh
swoole-4.8.10.tgz 也下载到了extensions目录
```
if [[ -z "${EXTENSIONS##*,swoole,*}" ]]; then
echo "---------- Install swoole ----------"
isPhpVersionGreaterOrEqual 8 0
if […
-
1. What did you do? If possible, provide a simple script for reproducing the error.
I want to use `package_length_func` function instead of:
```
// 'package_length_type' => 'l', //see php pack…
-
Try ti use pnly in main process - all ok.
Try to use in secondary thread only - get error "async-io must be used in PHP CLI mode"
I check sapi_name() before error - and it still "cli"
```
-
In the past few days we have tested a system developed in Laravel with a high workload. In doing so, we have stumbled across two situations that show that there are things to consider when developing …
-
1. create new laravel project,i test laravel5.5 laravel 5.7 and laravel 5.8
2. config db connection
3. php artisan make:auth
4. open http://localhost/login,and then refresh this page many times.onl…
-
Please answer these questions before submitting your issue.
1. What did you do? If possible, provide a simple script for reproducing the error.
```php
$client = new \Swoole\Coroutine\Http\Clien…