Re: PEAR DB version 1.7.6 with php version 5.1.1
| From: | Justin Patrin | Date: | Wed, 15 Feb 2006 17:09:22 +0000 |
| Subject: | Re: PEAR DB version 1.7.6 with php version 5.1.1 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22990@lists.php.net to get a copy of this message | ||
On 2/15/06, Heinz Knoche <Heinz.Knoche@gmx.de> wrote:
> Dear Ladies & Sirs!
>
> Calling "connect" statically (according to the PEAR DB package
> documentation) I get the following error:
>
> Error: "Non static method DB::connect () should not be called
> statically" (error #2048).
>
> (Checking the code of DB.php I found that connect is indeed not
> declared to be static)
>
>
> Furthermore I receive errors concerning the use of the modifier
> "var". E.g.:
>
> Line 58 in /usr/local/lib/php/DB/mysqli.php. Error: "var:
> Deprecated. Please use the public/private/protected modifiers"
> (error #2048)
>
>
> I'm using the MySQL database version 5.0.18 with mysqli-support
> compiled in and PHP version 5.1.1
>
> I'd be grateful for some hint which PEAR DB version I should
> use.
>
Turn off E_STRICT error reporting. PEAR DB is not E_STRICT compatible.
--
Justin Patrin