note 127646 added to mysqli.query

From: Date: Fri, 16 Sep 2022 16:33:38 +0000
Subject: note 127646 added to mysqli.query
Groups: php.notes 
Request: Send a blank email to php-notes+get-219590@lists.php.net to get a copy of this message
"In PHP 8.1, the default error handling behavior of the MySQLi extension has changed from silencing errors to throw an Exception on errors. " This is true even for the procedural use of mysqli, i.e. mysqli_query. Hence, using if(!mysqli_query($c, $sql)) [...] is pointless. To disable Exception throwing : mysqli_report(MYSQLI_REPORT_OFF); ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.173 (proxied: 176.184.249.15) ---- Manual Page -- https://php.net/manual/en/mysqli.query.php Edit -- https://main.php.net/note/edit/127646 Del: integrated -- https://main.php.net/note/delete/127646/integrated Del: useless -- https://main.php.net/note/delete/127646/useless Del: bad code -- https://main.php.net/note/delete/127646/bad+code Del: spam -- https://main.php.net/note/delete/127646/spam Del: non-english -- https://main.php.net/note/delete/127646/non-english Del: in docs -- https://main.php.net/note/delete/127646/in+docs Del: other reasons-- https://main.php.net/note/delete/127646 Reject -- https://main.php.net/note/reject/127646 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219590) next »