Odd warngs with MySQL and PHP5.1.2

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

    Odd warngs with MySQL and PHP5.1.2

    I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
    each and every query:

    PHP Notice: Object of class DB_result could not be converted to int in
    /opt/csw/php5/lib/php/DB/mysql.php on line 980
    PHP Notice: Object of class DB_result could not be converted to int in
    /opt/csw/php5/lib/php/DB/mysql.php on line 983

    Every thing aappears to be working, just scores of these warnings.

    Any clues?

    --
    Ian Collins.
  • noone

    #2
    Re: Odd warngs with MySQL and PHP5.1.2

    Ian Collins wrote:
    [color=blue]
    > I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
    > each and every query:[/color]
    [color=blue]
    > PHP Notice: Object of class DB_result could not be converted to int in
    > /opt/csw/php5/lib/php/DB/mysql.php on line 980
    > PHP Notice: Object of class DB_result could not be converted to int in
    > /opt/csw/php5/lib/php/DB/mysql.php on line 983[/color]
    [color=blue]
    > Every thing aappears to be working, just scores of these warnings.[/color]
    [color=blue]
    > Any clues?[/color]


    looks like it is trying to convert a character field to a number field and
    can't.


    Comment

    • Ian Collins

      #3
      Re: Odd warngs with MySQL and PHP5.1.2

      Ian Collins wrote:[color=blue]
      > I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
      > each and every query:
      >
      > PHP Notice: Object of class DB_result could not be converted to int in
      > /opt/csw/php5/lib/php/DB/mysql.php on line 980
      > PHP Notice: Object of class DB_result could not be converted to int in
      > /opt/csw/php5/lib/php/DB/mysql.php on line 983
      >
      > Every thing aappears to be working, just scores of these warnings.
      >[/color]
      The lines in question are:

      in function tableInfo($resu lt, $mode = null)

      if ($mode & DB_TABLEINFO_OR DER) {

      if ($mode & DB_TABLEINFO_OR DERTABLE) {

      Odd.

      --
      Ian Collins.

      Comment

      • Ian Collins

        #4
        Re: Odd warngs with MySQL and PHP5.1.2

        noone wrote:[color=blue]
        > Ian Collins wrote:
        >[color=green]
        >> I've just moved to 5.1.2 from 5.0.5 and I'm getting these warnings for
        >> each and every query:[/color]
        >
        >[color=green]
        >> PHP Notice: Object of class DB_result could not be converted to int in
        >> /opt/csw/php5/lib/php/DB/mysql.php on line 980
        >> PHP Notice: Object of class DB_result could not be converted to int in
        >> /opt/csw/php5/lib/php/DB/mysql.php on line 983[/color]
        >
        > looks like it is trying to convert a character field to a number field
        > and can't.
        >[/color]
        Which is odd when the line is

        if ($mode & DB_TABLEINFO_OR DER)

        and 0 is passed to mode.

        --
        Ian Collins.

        Comment

        Working...