Re: Auth-1.1.1.tgz -- isConnection function not found
| From: | Arnaud Limbourg | Date: | Sat, 07 Dec 2002 08:48:21 +0000 |
| Subject: | Re: Auth-1.1.1.tgz -- isConnection function not found | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2924@lists.php.net to get a copy of this message | ||
It may be that your PEAR::DB version is a bit old and does not have the isConnection method which
was introduced in later version.
Arnaud.
> Hello.
>
> I am using Debian Unstable.
>
> I just downloaded the Auth-1.1.1.tgz to use; and i am using example 2
> from the manual for testing. But it returns:
>
> Fatal error: Call to undefined function: isconnection() in
> /usr/share/pear/Auth/Container/DB.php on line 133
>
> In Auth/Container/DB.php
>
> > /**
> > * Prepare query to the database
> > *
> > * This function checks if we have already opened a connection to
> > * the database. If that's not the case, a new connection is opened.
> > * After that the query is passed to the database.
> > *
> > * @access public
> > * @param string Query string
> > * @return True or DB_Error
> > */
> > function query($query)
> > {
> > if (!DB::isConnection($this->db)) { < -- line 133
> > $this->_connect($this->options['dsn']);
> > }
> > return $this->db->query($query);
> > }
>
>
> Please help.
> Thanks.
> ~Pat.
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>