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
Post a Comment