|  | @@ 758-781 (lines=24) @@ | 
                                                            
                                    | 755 |  |  | 
                                                            
                                    | 756 |  | 		$host = DB_HOST; | 
                                                            
                                    | 757 |  |  | 
                                                            
                                    | 758 |  | 		if ( ! empty( $port_or_socket ) ) { | 
                                                            
                                    | 759 |  |  | 
                                                            
                                    | 760 |  | 			$host = substr( DB_HOST, 0, strpos( DB_HOST, ':' ) ); | 
                                                            
                                    | 761 |  |  | 
                                                            
                                    | 762 |  | 			$port_or_socket = substr( $port_or_socket, 1 ); | 
                                                            
                                    | 763 |  |  | 
                                                            
                                    | 764 |  | 			if ( 0 !== strpos( $port_or_socket, '/' ) ) { | 
                                                            
                                    | 765 |  |  | 
                                                            
                                    | 766 |  | 				$port = intval( $port_or_socket ); | 
                                                            
                                    | 767 |  |  | 
                                                            
                                    | 768 |  | 				$maybe_socket = strstr( $port_or_socket, ':' ); | 
                                                            
                                    | 769 |  |  | 
                                                            
                                    | 770 |  | 				if ( ! empty( $maybe_socket ) ) { | 
                                                            
                                    | 771 |  |  | 
                                                            
                                    | 772 |  | 					$socket = substr( $maybe_socket, 1 ); | 
                                                            
                                    | 773 |  |  | 
                                                            
                                    | 774 |  | 				} | 
                                                            
                                    | 775 |  |  | 
                                                            
                                    | 776 |  | 			} else { | 
                                                            
                                    | 777 |  |  | 
                                                            
                                    | 778 |  | 				$socket = $port_or_socket; | 
                                                            
                                    | 779 |  |  | 
                                                            
                                    | 780 |  | 			} | 
                                                            
                                    | 781 |  | 		} | 
                                                            
                                    | 782 |  |  | 
                                                            
                                    | 783 |  | 		// Path to the mysqldump executable | 
                                                            
                                    | 784 |  | 		$cmd = escapeshellarg( $this->get_mysqldump_command_path() ); | 
                                                                                
                                |  | @@ 860-883 (lines=24) @@ | 
                                                            
                                    | 857 |  |  | 
                                                            
                                    | 858 |  | 		$host = DB_HOST; | 
                                                            
                                    | 859 |  |  | 
                                                            
                                    | 860 |  | 		if ( ! empty( $port_or_socket ) ) { | 
                                                            
                                    | 861 |  |  | 
                                                            
                                    | 862 |  | 			$host = substr( DB_HOST, 0, strpos( DB_HOST, ':' ) ); | 
                                                            
                                    | 863 |  |  | 
                                                            
                                    | 864 |  | 			$port_or_socket = substr( $port_or_socket, 1 ); | 
                                                            
                                    | 865 |  |  | 
                                                            
                                    | 866 |  | 			if ( 0 !== strpos( $port_or_socket, '/' ) ) { | 
                                                            
                                    | 867 |  |  | 
                                                            
                                    | 868 |  | 				$port = intval( $port_or_socket ); | 
                                                            
                                    | 869 |  |  | 
                                                            
                                    | 870 |  | 				$maybe_socket = strstr( $port_or_socket, ':' ); | 
                                                            
                                    | 871 |  |  | 
                                                            
                                    | 872 |  | 				if ( ! empty( $maybe_socket ) ) { | 
                                                            
                                    | 873 |  |  | 
                                                            
                                    | 874 |  | 					$socket = substr( $maybe_socket, 1 ); | 
                                                            
                                    | 875 |  |  | 
                                                            
                                    | 876 |  | 				} | 
                                                            
                                    | 877 |  |  | 
                                                            
                                    | 878 |  | 			} else { | 
                                                            
                                    | 879 |  |  | 
                                                            
                                    | 880 |  | 				$socket = $port_or_socket; | 
                                                            
                                    | 881 |  |  | 
                                                            
                                    | 882 |  | 			} | 
                                                            
                                    | 883 |  | 		} | 
                                                            
                                    | 884 |  |  | 
                                                            
                                    | 885 |  | 		// PDO connection string formats: | 
                                                            
                                    | 886 |  | 		// mysql:host=localhost;port=3307;dbname=testdb | 
                                                                                
                                |  | @@ 1592-1615 (lines=24) @@ | 
                                                            
                                    | 1589 |  |  | 
                                                            
                                    | 1590 |  | 		$host = DB_HOST; | 
                                                            
                                    | 1591 |  |  | 
                                                            
                                    | 1592 |  | 		if ( ! empty( $port_or_socket ) ) { | 
                                                            
                                    | 1593 |  |  | 
                                                            
                                    | 1594 |  | 			$host = substr( DB_HOST, 0, strpos( DB_HOST, ':' ) ); | 
                                                            
                                    | 1595 |  |  | 
                                                            
                                    | 1596 |  | 			$port_or_socket = substr( $port_or_socket, 1 ); | 
                                                            
                                    | 1597 |  |  | 
                                                            
                                    | 1598 |  | 			if ( 0 !== strpos( $port_or_socket, '/' ) ) { | 
                                                            
                                    | 1599 |  |  | 
                                                            
                                    | 1600 |  | 				$port = intval( $port_or_socket ); | 
                                                            
                                    | 1601 |  |  | 
                                                            
                                    | 1602 |  | 				$maybe_socket = strstr( $port_or_socket, ':' ); | 
                                                            
                                    | 1603 |  |  | 
                                                            
                                    | 1604 |  | 				if ( ! empty( $maybe_socket ) ) { | 
                                                            
                                    | 1605 |  |  | 
                                                            
                                    | 1606 |  | 					$socket = substr( $maybe_socket, 1 ); | 
                                                            
                                    | 1607 |  |  | 
                                                            
                                    | 1608 |  | 				} | 
                                                            
                                    | 1609 |  |  | 
                                                            
                                    | 1610 |  | 			} else { | 
                                                            
                                    | 1611 |  |  | 
                                                            
                                    | 1612 |  | 				$socket = $port_or_socket; | 
                                                            
                                    | 1613 |  |  | 
                                                            
                                    | 1614 |  | 			} | 
                                                            
                                    | 1615 |  | 		} | 
                                                            
                                    | 1616 |  |  | 
                                                            
                                    | 1617 |  | 		// Path to the mysqldump executable | 
                                                            
                                    | 1618 |  | 		$cmd = 'mysql '; |