Re: PEAR DB version 1.7.6 with php version 5.1.1
| From: | Heinz Knoche | Date: | Fri, 17 Feb 2006 09:18:23 +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-23023@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: bertrand Gugger <bertrand@toggg.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 17:40:49 +0100
>
> Bonsoir,
> DB is certainly not PHP5 full compatible.
> I think it runs nice with PHP5 but not E_STRICT.
> What is the error reporting setting you have?
> Regards
> --
> toggg
>
> Heinz Knoche 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.
> >
> >Yours sincerely,
> >
> >Heinz Knoche
> >
> >
> >
>
--
Heinz Knoche
Feldkamp 19
48165 Münster
heinz.knoche@gmx.de
fest: 0049 (0)2501 927295
mobil: 0049 (0)174 3271569
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner