Re: PEAR DB version 1.7.6 with php version 5.1.1
| From: | Heinz Knoche | Date: | Fri, 17 Feb 2006 09:18:32 +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-23024@lists.php.net to get a copy of this message | ||
Thanks a lot for the hint, but I do not feel that there is a problem with
the error reporting level.
My error reporting setting is E_ALL. What I somehow do not get is why the
documentation and code comments of DB.php are telling me to call a method
(e.g. connect(), isError(), ... )statically which is not declared to be
static in the code. I'd like to understand this...
greetings,
Heinz
> --- Ursprüngliche Nachricht ---
> Von: Justin Patrin <papercrane@gmail.com>
> An: Heinz Knoche <Heinz.Knoche@gmx.de>
> Kopie: pear-general@lists.php.net
> Betreff: Re: [PEAR] PEAR DB version 1.7.6 with php version 5.1.1
> Datum: Wed, 15 Feb 2006 09:09:22 -0800
>
> 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
>
--
Heinz Knoche
Feldkamp 19
48165 Münster
heinz.knoche@gmx.de
fest: 0049 (0)2501 927295
mobil: 0049 (0)174 3271569
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie