php-developer-list | 2000111
Date: 11/15/00
- Next message: sbergmann <email protected>: "[PHP-DEV] PHP 4.0 Bug #7826: Unreproduceable crashes with latest CVS"
- Previous message: admiral <email protected>: "[PHP-DEV] PHP 4.0 Bug #7825: Configure keeps inserting a -l before -ldb and cannot detect required features"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7824
Updated by: zak
Reported By: heang.cheng <email protected>
Status: Bogus
Bug Type: Class/Object related
Assigned To:
Comments:
This is not a bug.
The cited line has a series of syntax errors in it.
To avoid these problems, read the manual entry on variable variables (http://www.php.net/manual/language.variables.variable.php)
Note that this will not fix the problem with your first argument (cbowireline.$lineno)
If you are trying to call a constant dynamically, you will need to use eval() - if you want to pass a string to the argument, then change the argument to:
"cbowireline$lineno"
-or-
'cbowireline' . $lineno
Previous Comments:
---------------------------------------------------------------------------
[2000-11-15 01:49:13] heang.cheng <email protected>
$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);
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7824
-- 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>
- Next message: sbergmann <email protected>: "[PHP-DEV] PHP 4.0 Bug #7826: Unreproduceable crashes with latest CVS"
- Previous message: admiral <email protected>: "[PHP-DEV] PHP 4.0 Bug #7825: Configure keeps inserting a -l before -ldb and cannot detect required features"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

