I have this class :
<?php
class Testmysql extends \Phalcon\Db\Adapter\Pdo\Mysql {
static $id = null;
/**
* Creates the Adapter
*/
public function __construct(array $descriptor = NULL)
{
self::$id = uniqid(true);
error_log(self::$id."\tMySQL::__construct(coucou)\n", 3, '/usr/share/nginx/html/test.log');
return parent::__construct($descriptor);
}
/**
* Connect
*/
public function connect(array $descriptor = NULL)
{
error_log("MySQL::connect()\n", 3, '/usr/share/nginx/html/test.log');
return parent::connect($descriptor);
}
/**
* Close
*/
public function close()
{
error_log(self::$id."\tMySQL::close(".$this->getConnectionId().")\n", 3, '/usr/share/nginx/html/test.log');
return parent::close();
}
}
In log, the close function, i have 0 for each connection id, how is it possible ? thank you
Phalcon 3.0