Menu

#314 var: Deprecated.

Unknown Error
open
nobody
5
2005-07-04
2005-07-04
Anonymous
No

Name: Janis
Email: jangal@inbox.lv

Sorry, an error occurred.

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

I don't understand where is the problem. Mysql is working and test.php didn't show any problems.

PLEASE HELP!

Discussion

  • Lane4

    Lane4 - 2005-07-15

    Logged In: YES
    user_id=1277628

    unfortunately this script seems to have problems on php5

    open adodb-mysql.inc.php

    replace "var " with "public "

     
  • 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.