src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 110-114 (lines=5) @@ | 
                                                            
                                    | 107 |  |  | 
                                                            
                                    | 108 |  |             // support arbitrary \PDO::MYSQL_ATTR_* driver options and pass them to PDO | 
                                                            
                                    | 109 |  |             // http://php.net/manual/en/ref.pdo-mysql.php#pdo-mysql.constants | 
                                                            
                                    | 110 |  |             foreach ($options as $key => $option) { | 
                                                            
                                    | 111 |  |                 if (strpos($key, 'mysql_attr_') === 0) { | 
                                                            
                                    | 112 |  |                     $driverOptions[constant('\PDO::' . strtoupper($key))] = $option; | 
                                                            
                                    | 113 |  |                 } | 
                                                            
                                    | 114 |  |             } | 
                                                            
                                    | 115 |  |  | 
                                                            
                                    | 116 |  |             $db = $this->createPdoConnection($dsn, $options['user'], $options['pass'], $driverOptions); | 
                                                            
                                    | 117 |  |  | 
                                                                        
                 
                                                            
                    
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 77-81 (lines=5) @@ | 
                                                            
                                    | 74 |  |  | 
                                                            
                                    | 75 |  |             // support arbitrary \PDO::SQLSRV_ATTR_* driver options and pass them to PDO | 
                                                            
                                    | 76 |  |             // http://php.net/manual/en/ref.pdo-sqlsrv.php#pdo-sqlsrv.constants | 
                                                            
                                    | 77 |  |             foreach ($options as $key => $option) { | 
                                                            
                                    | 78 |  |                 if (strpos($key, 'sqlsrv_attr_') === 0) { | 
                                                            
                                    | 79 |  |                     $driverOptions[constant('\PDO::' . strtoupper($key))] = $option; | 
                                                            
                                    | 80 |  |                 } | 
                                                            
                                    | 81 |  |             } | 
                                                            
                                    | 82 |  |  | 
                                                            
                                    | 83 |  |             $db = $this->createPdoConnection($dsn, $options['user'], $options['pass'], $driverOptions); | 
                                                            
                                    | 84 |  |  |