PHP 4.0 Bug #7824: For Loop seems to mis-behave when using classes
| From: | heang dot cheng at dingoblue dot com dot au | Date: | Wed, 15 Nov 2000 06:49:13 +0000 |
| Subject: | PHP 4.0 Bug #7824: For Loop seems to mis-behave when using classes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38119@lists.php.net to get a copy of this message | ||
From: heang.cheng@dingoblue.com.au
Operating system: LinuxPPC 2000
PHP version: 4.0.3pl1
PHP Bug Type: Class/Object related
Bug description: For Loop seems to mis-behave when using classes
$fetchwireline = new GetWireline;
$fetchwireline->GetWireline($custnumber);
$cbophone = new Selectwireline;
$cbophone->Wireline($fetchwireline->getsql());
// NEXT THREE LINES DOES NOT WORK
for($lineno=1; $lineno <= 2; $lineno++){
$cbophone->Build(cbowireline.$lineno, $cbowireline.$lineno);
}
// NEXT TWO LINES DOES WORK IN PLACE OF ABOVE THREE LINES
//$cbophone->Build(cbowireline1, $cbowireline1);
//$cbophone->Build(cbowireline2, $cbowireline2);
--
Edit Bug report at: http://bugs.php.net/?id=7824&edit=1