Re: PHP5 and PEAR DB class
| From: | Justin Patrin | Date: | Mon, 29 Nov 2004 06:38:33 +0000 |
| Subject: | Re: PHP5 and PEAR DB class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15883@lists.php.net to get a copy of this message | ||
On Sun, 28 Nov 2004 15:45:01 -0500, Victor Menendez <victor@lumisis.com> wrote:
> Does anyone know for sure that PEAR DB class does currently work with PHP5 and Mysql 4.1?
>
> I received the following error;
> Error: "Non-static method DB::connect() should not be called statically" (error
> #2048).
>
> I know that this is a commong problem, is it just a matter for declaring a public class and
> calling hte DB method differently?
>
You need to tell PHP5 to allow PHP4 syntax. I don't know for sure what
setting this is.
--
Justin Patrin