Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51207, comment 2


Ignore:
Timestamp:
11/13/2022 01:49:10 AM (3 years ago)
Author:
eadumbire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51207, comment 2

    initial v1  
    11Solution is to use a PHP version >7.4. See best anwer on https://stackoverflow.com/questions/53813908/print-rmysqli-1-changes-mysqli-affected-rows
    22
     3
     4There is a bug of sorts affecting use of mysqli within a live xdebug debugging session. This makes it so that the value of mysqli::affected_rows is always -1.
     5
     6See: https://bugs.php.net/bug.php?id=67348
     7
     8I was able to get the expected values for mysqli::affected_rows, by using var_dump() in lieu of live-inspecting the value.