#63 Parameter mixup in MySQLi driver

Next_Version
closed-fixed
5
2006-10-19
2006-10-19
No

On line 77 of the mysqli_driver.inc the
mysqli_select_db() function has its parameters in the
wrong order. The error (Warning level) is suppressed by
the @ prefixed to the function call - this does not
break the driver which manages to work anyway (idiot
proofing in the mysqli library I think).

I caught it after implementing an error handler which
captures the contents of the temp $php_errormsg
variable (populated when a function call error is
suppressed with @). Since the handler catches all
errors being suppressed, this seems an isolated one for
the MySQLi driver. It's working normally with the fix.

Happy bug squishing! :)

Discussion

  • Mark Dickenson

    Mark Dickenson - 2006-10-19

    Logged In: YES
    user_id=752816

    Blast, I thought I had caught all of those in the mysqli
    driver.

    Thanks for the heads up. I made the change for the next
    release.

     
  • Mark Dickenson

    Mark Dickenson - 2006-10-19
    • milestone: --> Next_Version
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks