Bug #81034 [Opn->Fbk]: mysqli_result::free emmits exception/warning

From: Date: Wed, 12 May 2021 09:41:42 +0000
Subject: Bug #81034 [Opn->Fbk]: mysqli_result::free emmits exception/warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233805@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81034&edit=1 ID: 81034 Updated by: nikic@php.net Reported by: shop1 at mokraemer dot de Summary: mysqli_result::free emmits exception/warning -Status: Open +Status: Feedback Type: Bug Package: MySQLi related PHP Version: 8.0.6 Block user comment: N Private report: N New Comment: Could you please provide an example script for the case you have in mind? Previous Comments: ------------------------------------------------------------------------ [2021-05-12 09:40:24] shop1 at mokraemer dot de Description: ------------ an exception is thrown and a warning is emitted if no result is available. There is no need to emmit this!!! With this (change due to @ operator) it makes db handling more complex without any benefit. Since insert/update events do not have any results. Expected result: ---------------- do NOT emit any warning! this causes error checks to trigger, which is not desireable!!! Actual result: -------------- an exception is emitted (can be handled, but unneeded) and a warning is emitted which is worse, since it can't be silenced! ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81034&edit=1

« previous php.bugs (#233805) next »