Menu

#278 Incompatibility with PHP5

open
nobody
5
2005-03-28
2005-03-28
Anonymous
No

Name: Catalin
Email: catalin2@gmail.com

Hello,
The error it is:

C:\wamp\www\phpopenchat-3.0.2\include\adodb\drivers\adodb-mysql.inc.php:22
[2048] var: Deprecated. Please use the public/private/protected modifiers

Discussion

  • pericles

    pericles - 2005-04-30

    Logged In: YES
    user_id=1269603

    put the publiuc declaration before each variable in the
    class. It worked to me.

     
  • dookiebombtoo

    dookiebombtoo - 2005-09-24

    Logged In: YES
    user_id=1350999

    Found the real issue. Having a custom error handler even
    gets E_STRICT errors, which is what is happening here. By
    modifying the display_error function in class.Chat.inc, we
    can avoid the problem:
    -----snip-----
    function display_error( $errno, $errstr, $errfile,
    $errline, $vars = null, $poc_error_msg = null )
    {
    // We don't know how to properly handle E_STRICT
    errors.
    // Returning false causes the default error handling to
    take over.
    if ($errno == E_STRICT) return false;
    -----snip-----

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.