PHP 4.0 Bug #9451: Core maths problem with incrementation

From: Date: Mon, 26 Feb 2001 07:07:31 +0000
Subject: PHP 4.0 Bug #9451: Core maths problem with incrementation
Groups: php.dev 
Request: Send a blank email to php-dev+get-47513@lists.php.net to get a copy of this message
From: alex@sgl.net.au Operating system: Linux Redhat 6.0 (server) PHP version: 4.0.4pl1 PHP Bug Type: Math related Bug description: Core maths problem with incrementation I wrote a poll section for the company i work for, on www.sgl.net.au. I was testing boundary and illegal values with my script, and i set the number of votes for one of the options to -1, when i click "Vote" it takes the -1 and increments it. (taken from a mysql_db) when it finishes incrementing it the resulting vote number is -2 so $variable = - 1; $variable++; echo $variable prints out -2 The problem could be with mysql returning a positve integer only ,but i thought i'd mention it anyway -- Edit Bug report at: http://bugs.php.net/?id=9451&edit=1

« previous php.dev (#47513) next »