Date: 09/05/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6508 Updated: Testing recent modifications to the bug report system"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6508 Updated: Testing recent modifications to the bug report system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: amri <email protected>
Operating system: Redhat Linux 6.2
PHP version: 4.0.2
PHP Bug Type: Variables related
Bug description: Function default argmnt. doesn't accept variable
Default function argument doesn't accept variable.
function echoname ($name = 'bob')
works fine but
$him = 'bob';
function echoname ($name = $bob)
will produce error.
I'm not sure either this is a bug or limitation but I guess its useful if variable is allowed as default function argument.
regards,
amri
-- 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: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6508 Updated: Testing recent modifications to the bug report system"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6508 Updated: Testing recent modifications to the bug report system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

