An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.
It's not checking that $socket is not null, and so I'm getting the error fclose() expects parameter 1 to be resource, null given in ...amp-mysql/lib/Connection.php on line 138.
Also, I think it should be checking for the error first and calling the $future->fail regardless of connection state.
The code here seems quite wrong.
It's not checking that $socket is not null, and so I'm getting the error
fclose() expects parameter 1 to be resource, null given in ...amp-mysql/lib/Connection.php on line 138
.Also, I think it should be checking for the error first and calling the $future->fail regardless of connection state.