Re: [LOG] var: Deprecated. Please use the public/private/protected modifiers
| From: | Justin Patrin | Date: | Fri, 14 Oct 2005 17:03:29 +0000 |
| Subject: | Re: [LOG] var: Deprecated. Please use the public/private/protected modifiers | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21476@lists.php.net to get a copy of this message | ||
On 10/14/05, Damien Cros <damienc@cc.in2p3.fr> wrote:
> > Any idea what I should do? Replace every 'var' by private/public/
> > protected?
>
> I'm answering myself: replacing var by private, public or protected
> and also add "public static" to some pear::Log functions makes it work.
>
> It seems that a lot of packages (like smarty) are not totally written
> in PHP 5.
>
Yes. Most PHP packages out there are written for PHP4, not PHP5 and as
such are not E_STRICT. I suggest you leave the code alone and simply
ignore those warnings in your error handler.
--
Justin Patrin