Closed mmasiukevich closed 3 years ago
There are a number of type checks in the code:
https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L254 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L377 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L391 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L412 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L548 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L562
But the handle property doesnt store the resource (how is it checked), but the PgSql\Connection object. Is this some cunning plan, or just forgotten checks? Since it breaks the library.
handle
PgSql\Connection
p.s. https://www.php.net/manual/ru/function.pg-connect.php
There are a number of type checks in the code:
https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L254 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L377 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L391 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L412 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L548 https://github.com/amphp/postgres/blob/master/src/PgSqlHandle.php#L562
But the
handle
property doesnt store the resource (how is it checked), but thePgSql\Connection
object. Is this some cunning plan, or just forgotten checks? Since it breaks the library.p.s. https://www.php.net/manual/ru/function.pg-connect.php