Re: Re: cvs: php4 /pear DB.php /pear/DB common.phpmysql.php
| From: | Andrei Zmievski | Date: | Mon, 04 Dec 2000 19:12:37 +0000 |
| Subject: | Re: Re: cvs: php4 /pear DB.php /pear/DB common.phpmysql.php | ||
| References: | 1 2 3 4 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-503@lists.php.net to get a copy of this message | ||
On Mon, 04 Dec 2000, Chuck Hagenbuch wrote:
> Anyway, my preference (following the Horde standards that Jon provided a link
> to) would be:
>
> function connect(&$dsn, $persistent = false)
> {
> if (is_array($dsn)) {
> $dsninfo = &$dsn;
> } else {
> $dsninfo = DB::parseDSN($dsn);
> }
>
> if (!$dsninfo || !$dsninfo['phptype']) {
> return $this->raiseError();
> }
> }
>
This is my preference as well.
-Andrei
Computer, if you don't open that exit hatch this moment I shall zap straight
off to your major data banks and reprogram you with a very large axe.
-- Douglas Adams / The Hitchhiker's Guide to the Galaxy