cvs: pear /DB/DB mysql4.php
| From: | Martin Jansen | Date: | Fri, 06 Jun 2003 18:58:33 +0000 |
| Subject: | cvs: pear /DB/DB mysql4.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-10738@lists.php.net to get a copy of this message | ||
mj Fri Jun 6 14:58:33 2003 EDT
Modified files:
/pear/DB/DB mysql4.php
Log:
* Whitespace fixes
# Patch by: Roman Neuhauser
Index: pear/DB/DB/mysql4.php
diff -u pear/DB/DB/mysql4.php:1.5 pear/DB/DB/mysql4.php:1.6
--- pear/DB/DB/mysql4.php:1.5 Wed May 7 12:58:28 2003
+++ pear/DB/DB/mysql4.php Fri Jun 6 14:58:33 2003
@@ -13,8 +13,8 @@
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
-// | Author: Chaillan Nicolas <nicos@php.net> |
-// | Based on mysql.php by Stig Bakken <ssb@php.net> |
+// | Author: Chaillan Nicolas <nicos@php.net> |
+// | Based on mysql.php by Stig Bakken <ssb@php.net> |
// +----------------------------------------------------------------------+
//
@@ -95,7 +95,7 @@
{
if (!DB::assertExtension('mysql')) {
return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
- }
+ }
$this->dsn = $dsninfo;
if (isset($dsninfo['protocol']) && $dsninfo['protocol'] ==
'unix') {
@@ -109,12 +109,12 @@
$user = $dsninfo['username'];
$pw = $dsninfo['password'];
- $ssl_mode = $ssl ? 'CLIENT_SSL' : NULL;
+ $ssl_mode = $ssl ? 'CLIENT_SSL' : NULL;
@ini_set('track_errors', true);
-
- if ($dbhost && $user && $pw) {
- // Need to verify if arguments are okay
+
+ if ($dbhost && $user && $pw) {
+ // Need to verify if arguments are okay
$conn = @mysql_connect($dbhost, $user, $pw, $ssl_mode);
} elseif ($dbhost && $user) {
$conn = @mysql_connect($dbhost, $user, NULL, $ssl_mode);
@@ -123,8 +123,8 @@
} else {
$conn = false;
}
-
- @ini_restore('track_errors');
+
+ @ini_restore('track_errors');
if (empty($conn)) {
if (($err = @mysql_error()) != '') {