php - MYSQLI_REPORT_STRICT don't throw mysqli_sql_exception ,but MYSQLI_REPORT_ALL does -


i had set

mysqli_report(mysqli_report_strict) 

and

try{    //query sth ,error happend  }catch(exception $e){   print($e->__tostring());       } 

but there no debug info . if set mysqli_report(mysqli_report_all) ,i can debug info. why?

you need enable error reporting (mysqli_report_error) if not (depending on version of php either per-request or per-process). itself, mysqli_report_strict not enable error reporting, appropriate bitwise flags might need applied together:

mysqli_report(mysqli_report_error | mysqli_report_strict) 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -