Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24121

database_port setting in parameters.yml is ignored

    XMLWordPrintable

    Details

      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;" 
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            vidar.langseid@ez.no Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified