Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2000111

[PHP-DEV] PHP 4.0 Bug #7824: For Loop seems to mis-behave when using classes From: heang.cheng <email protected>
Date: 11/15/00

From: heang.cheng <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>