PHP 5.1.2 and PEAR Logger

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R

    #1

    PHP 5.1.2 and PEAR Logger

    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

    #2
    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


    Comment

    • Mladen Gogala

      #3
      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.

      --
      大红鹰娱乐平台采用顶级加密技术,确保用户数据与交易的安全无虞,让玩家能够放心畅玩。


      Comment

      Working...