running xdebug messes with mysqli->affected rows??

  • From: "figiemmi" < >
  • To:
  • Subject: running xdebug messes with mysqli->affected rows??
  • Date: Sat, 24 Nov 2012 02:54:10 -0500

ran a program without xdebug on and I get right results and updates to my 

turn xdebug on and trace the exact same program line by line causes a error 
specifically with the line where mysqli->affected row value is being 
examined. I can see the value 1 and then it turns -1 on the very next line 
that doesn't involve any sql related codes? 

if ($mysqli->affected_rows == 1) {     // this line value is 1 (correct value)
    echo '<h1>Thank you!</h1>         // then on the next line the value of 
affected row changes  -1 (incorrect)????

could it be that the time stamp associated with the original database update 
changed when using step by step debugging? and thus causing the program to 
fail running in xdebug??   thanx for any info.

Otherwise it runs fine without xdebug turned on????

running xdebug messes with mysqli->affected rows??

figiemmi 11/24/2012

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 306 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm