Details
-
Bug
-
Resolution: Fixed
-
High
-
2015.01
-
mysql ( pdo )
Description
Seems like database_port in parameters is just ignored.
This is my parameters.yml
# This file is auto-generated during the composer install parameters: secret: 3Yq3Ia9EvPO6hVTIPvl26aY5pDSD8Q65 locale_fallback: en mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null database_driver: pdo_mysql database_host: 1.2.3.4 database_port: 49168 database_name: ezp database_user: admin database_password: foo
Then applying the following patch:
--- /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php.org 2015-03-10 12:26:09.936862124 +0000 +++ /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php 2015-03-10 12:21:36.176872891 +0000 @@ -39,6 +39,8 @@ */ public function __construct($dsn, $user = null, $password = null, array $options = null) { +var_dump( "dsn", $dsn ); +die; try { parent::__construct($dsn, $user, $password, $options); $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
and this will be the output when access the ezp installation in a browser:
string(3) "dsn" string(48) "mysql:host=1.2.3.4;dbname=ezp;charset=UTF8;"