src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 84-88 (lines=5) @@ | 
                                                            
                                    | 81 |  |  | 
                                                            
                                    | 82 |  |             // support arbitrary \PDO::SQLSRV_ATTR_* driver options and pass them to PDO | 
                                                            
                                    | 83 |  |             // http://php.net/manual/en/ref.pdo-sqlsrv.php#pdo-sqlsrv.constants | 
                                                            
                                    | 84 |  |             foreach ($options as $key => $option) { | 
                                                            
                                    | 85 |  |                 if (strpos($key, 'sqlsrv_attr_') === 0) { | 
                                                            
                                    | 86 |  |                     $driverOptions[constant('\PDO::' . strtoupper($key))] = $option; | 
                                                            
                                    | 87 |  |                 } | 
                                                            
                                    | 88 |  |             } | 
                                                            
                                    | 89 |  |  | 
                                                            
                                    | 90 |  |             try { | 
                                                            
                                    | 91 |  |                 $db = new \PDO($dsn, $options['user'], $options['pass'], $driverOptions); | 
                                                                        
                 
                                                            
                    
src/Phinx/Db/Adapter/MysqlAdapter.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 118-122 (lines=5) @@ | 
                                                            
                                    | 115 |  |  | 
                                                            
                                    | 116 |  |             // support arbitrary \PDO::MYSQL_ATTR_* driver options and pass them to PDO | 
                                                            
                                    | 117 |  |             // http://php.net/manual/en/ref.pdo-mysql.php#pdo-mysql.constants | 
                                                            
                                    | 118 |  |             foreach ($options as $key => $option) { | 
                                                            
                                    | 119 |  |                 if (strpos($key, 'mysql_attr_') === 0) { | 
                                                            
                                    | 120 |  |                     $driverOptions[constant('\PDO::' . strtoupper($key))] = $option; | 
                                                            
                                    | 121 |  |                 } | 
                                                            
                                    | 122 |  |             } | 
                                                            
                                    | 123 |  |  | 
                                                            
                                    | 124 |  |             try { | 
                                                            
                                    | 125 |  |                 $db = new \PDO($dsn, $options['user'], $options['pass'], $driverOptions); |