LonghornPHP 2026

Voting

: two plus zero?
(Example: nine)

The Note You're Voting On

wiserufferto at gmail dot com
5 years ago
This is a little late... but I'm old and slow.......
Regarding Extending PDOStatement and PDO I found that sending the PDOExtended class by reference helps:
    In the constructor after parent::__construct() :
$this->setAttribute(\PDO::ATTR_STATEMENT_CLASS,array('PDOStatementExtended', [&$this]));}

And in 
class PDOStatementExtended extends \PDOStatement
{
  
  protected function __construct
  (
    \PDO &$PDO,
   )

<< Back to user notes page

To Top