swoft icon indicating copy to clipboard operation
swoft copied to clipboard

🚀 PHP Microservice Full Coroutine Framework

Results 117 swoft issues
Sort by recently updated
recently updated
newest added

config 文件夹下的配置文件中,使用config()函数会循环require文件

question: usage
swoft: config

`$brands = Brand::new()->setModelHidden(['updated_at'])->where($where)->get()->toArray();` 如上代码: 在查询数据库时,设置掩藏updated_at字段,结果不生效,所有数据都返回了

enhancement
swoft: db
bug: small

| Q | A | ------------------- | ----- | Bug report? | yes | Feature request? | no | Swoft version | v2.0.9 | Swoole version | 4.4.15 | PHP...

swoft: db

Hi, I want to use devtool for migration classes for non-mysql schema: RediSearch or ClickHouse, for example. Currently Swoft does not support DB connection with DSN "sqlite:". Please add support...

feature
swoft: db

| Q | A | ------------------- | ----- | Bug report? | no | Feature request? | yes | Swoft version | 2.0.9 (by `php bin/swoft -V`) | Swoole version...

help wanted
swoft: db

``` ERROR php_swoole_server_rshutdown (ERRNO 503): Fatal error: Uncaught ErrorException: Uncaught InvalidArgumentException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded in /mnt/vdc/wwwroot/dbbackweb/swoft/vendor/swoft/stdlib/src/Helper/JsonHelper.php:58 Stack trace: #0 /mnt/vdc/wwwroot/dbbackweb/swoft/vendor/swoft/websocket-server/src/Connection.php(223): Swoft\Stdlib\Helper\JsonHelper::encode(Array) #1 /mnt/vdc/wwwroot/dbbackweb/swoft/vendor/swoft/framework/src/Concern/AbstractSessionManager.php(83): Swoft\WebSocket\Server\Connection->toString() #2...

swoft: db
swoft: websocket

php test/run.php -c phpunit.xml 异常:RuntimeException: context information has been lost of the coID: 1 ··· test文件: ```php $bean = bean(DelFileLogic::class); $this->assertSame(1, $bean->delMulSearchFile(),'删除文件失败'); logic: try{ .... }catch (\Exception $e){ CLog::info($e->getMessage(), date('Y-m-d...

* Demo继承一个父类,然后父类中使用inject注入一个bean,这个时候会报错, * **with `@xxx` must be define class annotation** * 提示的错误信息是,使用属性注解必须有类注解,,问题是父类中应该不需要有类注解的么?不懂求解 * 父类中怎么处理,不懂!! ### DemoCommand ```

https://www.swoft.org/documents/v1/component-list/devtool/ 手册上的配置与命令好像是1.0的配置,请问目前2.X是否支持该功能 配置文件与middle 、命令均完成不同

swoft: config

··· if (!\ini_get('sdebug.coverage_enable')) { //返回false throw new RuntimeException('sdebug.coverage_enable=On has to be set in php.ini'); } ··· 试过其他配置项也是无法获取

swoft: config