We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0522ae6 commit 99b4641Copy full SHA for 99b4641
ext/mysqli/mysqli_api.c
@@ -1998,13 +1998,15 @@ PHP_FUNCTION(mysqli_thread_id)
1998
static const char *query = "SELECT CONNECTION_ID()";
1999
2000
if (mysql_real_query(mysql->mysql, query, strlen(query))) {
2001
- MYSQLI_REPORT_MYSQL_ERROR(mysql->mysql);
+ //MYSQLI_REPORT_MYSQL_ERROR(mysql->mysql);
2002
+ php_error_docref(NULL, E_ALL, "%s", mysql_error(mysql->mysql));
2003
RETURN_LONG(-1);
2004
}
2005
2006
result = mysql_store_result(mysql->mysql);
2007
if (!result) {
2008
2009
2010
2011
2012
0 commit comments