On 31 July 2017 at 08:21, Andrew Nester <newaltgr...@bk.ru> wrote:
>
> when we are using persistent PDO we can’t use PDO::ATTR_STATEMENT_CLASS and
> return our custom PDOStatement class
>
> But just implementing PDOInterface and PDOStatementInterface will allow us to 
> implement
> this and have proper type hints in userland code.

Are you sure having interfaces would change this?

I would assume you can't use PDO::ATTR_STATEMENT_CLASS with persistent
PDO due to a limitation of the implementation internal to PDO, rather
than anything to do with what sub-classes what.

Could you post a working example of being able to set
PDO::ATTR_STATEMENT_CLASS with persistent PDO?

cheers
Dan

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to