Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10307

Return value of $db->sql_fetchrow() on empty tables is not consistent

XMLWordPrintable

      MySQLi return NULL when there is no further entry in the table,
      MySQL returns false in the same case.
      I think that should be made consistent for all dbms.

      http://www.php.net/manual/en/mysqli-result.fetch-row.php#38766

      from "README.PHP4-TO-PHP5-THIN-CHANGES"

      4. Be careful when porting from ext/mysql to ext/mysqli. The following
      functions return NULL when no more data is available in the result set
      (ext/mysql's functions return FALSE).

      • mysqli_fetch_row()
      • mysqli_fetch_array()
      • mysqli_fetch_assoc()

            igorw Igor Wiedler [X] (Inactive)
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: