PHP 4.0 Bug #5331: ++ operator
| From: | zork at clan dot pl | Date: | Sun, 02 Jul 2000 17:23:24 +0000 |
| Subject: | PHP 4.0 Bug #5331: ++ operator | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23160@lists.php.net to get a copy of this message | ||
From: zork@clan.pl
Operating system: Linux (Slackware 7.0)
PHP version: 4.0.0
PHP Bug Type: Scripting Engine problem
Bug description: ++ operator
Deep in my program I have such fragment:
list($newkey) = $db -> getrow();
$newkey++;
$data[$key] = $newkey;
And $newkey++ doesn't work!
If i change
$newkey++;
to
$newkey = $newkey + 1;
everything is fine - newkey gets incremented. But It doesn't with ++ operator.
Don't have time now to shrink the code to the smallest one that produce this behaviour and to
upgarde to 4.0.1 - I will do it in one or two weeks.
regards
£ukasz Michalski.