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