[PHP-DEV] PHP 4.0 Bug #6566: Function default argmnt. doesn't accept variable From: amri <email protected>
Date: 09/05/00

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>