Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 123... Zeile 123...
123
			$port = NULL;
123
			$port = NULL;
124
			$socket = $this->hostname;
124
			$socket = $this->hostname;
125
		}
125
		}
126
		else
126
		else
127
		{
127
		{
128
			// Persistent connection support was added in PHP 5.3.0
-
 
129
			$hostname = ($persistent === TRUE && is_php('5.3'))
128
			$hostname = ($persistent === TRUE)
130
				? 'p:'.$this->hostname : $this->hostname;
129
				? 'p:'.$this->hostname : $this->hostname;
131
			$port = empty($this->port) ? NULL : $this->port;
130
			$port = empty($this->port) ? NULL : $this->port;
132
			$socket = NULL;
131
			$socket = NULL;
133
		}
132
		}
Zeile 182... Zeile 181...
182
					//
181
					//
183
					// https://secure.php.net/ChangeLog-5.php#5.6.16
182
					// https://secure.php.net/ChangeLog-5.php#5.6.16
184
					// https://bugs.php.net/bug.php?id=68344
183
					// https://bugs.php.net/bug.php?id=68344
185
					elseif (defined('MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT'))
184
					elseif (defined('MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT'))
186
					{
185
					{
187
						$this->_mysqli->options(MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT, TRUE);
186
						$client_flags |= MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT;
188
					}
187
					}
189
				}
188
				}
Zeile 190... Zeile 189...
190
 
189
 
191
				$client_flags |= MYSQLI_CLIENT_SSL;
190
				$client_flags |= MYSQLI_CLIENT_SSL;
Zeile 500... Zeile 499...
500
	public function error()
499
	public function error()
501
	{
500
	{
502
		if ( ! empty($this->_mysqli->connect_errno))
501
		if ( ! empty($this->_mysqli->connect_errno))
503
		{
502
		{
504
			return array(
503
			return array(
505
				'code' => $this->_mysqli->connect_errno,
504
				'code'    => $this->_mysqli->connect_errno,
506
				'message' => is_php('5.2.9') ? $this->_mysqli->connect_error : mysqli_connect_error()
505
				'message' => $this->_mysqli->connect_error
507
			);
506
			);
508
		}
507
		}
Zeile 509... Zeile 508...
509
 
508
 
510
		return array('code' => $this->conn_id->errno, 'message' => $this->conn_id->error);
509
		return array('code' => $this->conn_id->errno, 'message' => $this->conn_id->error);