Bug #81034 [NEW]: mysqli_result::free emmits exception/warning
| From: | shop1 at mokraemer dot de | Date: | Wed, 12 May 2021 09:40:24 +0000 |
| Subject: | Bug #81034 [NEW]: mysqli_result::free emmits exception/warning | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-233804@lists.php.net to get a copy of this message | ||
From: shop1 at mokraemer dot de
Operating system:
PHP version: 8.0.6
Package: MySQLi related
Bug Type: Bug
Bug description:mysqli_result::free emmits exception/warning
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 bug report at https://bugs.php.net/bug.php?id=81034&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81034&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81034&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81034&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81034&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81034&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81034&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81034&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81034&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81034&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81034&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81034&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81034&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81034&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81034&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81034&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81034&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81034&r=mysqlcfg