Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP 5.1.2 and PEAR Logger

R
Guest
 
Posts: n/a
#1: Apr 23 '06
Hi All,

I get messages like:
"var: Deprecated. Please use the public/private/protected modifiers"

Is there any patch on PEAR Logger to work with PHP 5?

thanks in advance
best regards
R


Janwillem Borleffs
Guest
 
Posts: n/a
#2: Apr 23 '06

re: PHP 5.1.2 and PEAR Logger


R wrote:[color=blue]
> I get messages like:
> "var: Deprecated. Please use the public/private/protected modifiers"
>
> Is there any patch on PEAR Logger to work with PHP 5?
>[/color]

Check the setting of the error_reporting directive in your php.ini file;
it's probably set to E_STRICT (with or without another flag). When it is,
try another value like E_ALL only.


JW


Mladen Gogala
Guest
 
Posts: n/a
#3: Apr 23 '06

re: PHP 5.1.2 and PEAR Logger


On Sun, 23 Apr 2006 08:43:18 -0700, R wrote:
[color=blue]
> Hi All,
>
> I get messages like:
> "var: Deprecated. Please use the public/private/protected modifiers"
>
> Is there any patch on PEAR Logger to work with PHP 5?
>
> thanks in advance
> best regards
> R[/color]

I believe that something like error_reporting(E_ERROR) in your script will
will make those ugly warnings disappear. There is a procedure called
error_reporting() and it is described in the manual.

--
http://www.mgogala.com

Closed Thread


Similar PHP bytes