swoole / ext-postgresql

🐘 Coroutine-based client for PostgreSQL
64 stars 21 forks source link

WARNING socket_free_defer(:404): close(5) failed, Error: Bad file descriptor[9] #27

Closed Yurunsoft closed 4 years ago

Yurunsoft commented 4 years ago
# php --ri swoole_postgresql

swoole_postgresql

Swoole PostgreSQL => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.5.1
Built => Jun  1 2020 09:54:29
trace_log => enabled

Code:

<?php
Co\run(function () {
    $pg = new Swoole\Coroutine\PostgreSQL();
    $conn = $pg->connect("host=127.0.0.1 port=5432 dbname=test user=postgres password=1");
    var_dump($conn, $pg->error);
});

Output:

bool(true)
NULL
[2020-06-01 13:26:41 @14336.0]  WARNING socket_free_defer(:404): close(5) failed, Error: Bad file descriptor[9]
huanghantao commented 4 years ago

fixed in #30