323 Star 1.6K Fork 345

GVPswoole / swoole-src

 / 详情

异步MySQL 报错了

Done
Opened this issue  
2017-01-13 14:54

debian:~/phpcode$ php -f d.php

[Thu Jan 12 22:44:34 2017] Script: '/home/eric/phpcode/d.php'

/home/eric/software/php-7.1.0/Zend/zend_string.h(122) : Freeing 0xb6a011b8 (20 bytes), script=/home/eric/phpcode/d.php

Last leak repeated 7 times

[Thu Jan 12 22:44:34 2017] Script: '/home/eric/phpcode/d.php'

/home/eric/software/swoole/php7_wrapper.h(310) : Freeing 0xb6a012f8 (16 bytes), script=/home/eric/phpcode/d.php

[Thu Jan 12 22:44:34 2017] Script: '/home/eric/phpcode/d.php'

/home/eric/software/php-7.1.0/Zend/zend_API.c(1060) : Freeing 0xb6a57280 (44 bytes), script=/home/eric/phpcode/d.php

[Thu Jan 12 22:44:34 2017] Script: '/home/eric/phpcode/d.php'

/home/eric/software/php-7.1.0/Zend/zend_closures.c(463) : Freeing 0xb6a5c460 (192 bytes), script=/home/eric/phpcode/d.php

[Thu Jan 12 22:44:34 2017] Script: '/home/eric/phpcode/d.php'

/home/eric/software/php-7.1.0/Zend/zend_hash.c(138) : Freeing 0xb6a5e500 (224 bytes), script=/home/eric/phpcode/d.php

=== Total 12 memory leaks detected ===

系统:debian7.8
php版本:7.1

swoole版本:2.0.5

d.php 内容:

'localhost', 'user' => 'root', 'password' => '', 'database' => 'kfb_a', ); $db->connect($server, function ($db, $result) { $db->query("show tables", function (Swoole\MySQL $db, $result) { if ($result === false) { var_dump($db->error, $db->errno); } elseif ($result === true) { var_dump($db->affected_rows, $db->insert_id); } else { var_dump($result); $db->close(); } }); });

Comments (1)

eric.huang created 任务
eric.huang updated 任务

忽略此信息

Rango closed 任务

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
C
1
https://gitee.com/swoole/swoole.git
git@gitee.com:swoole/swoole.git
swoole
swoole
swoole-src

Search