PHP 4.0 Bug #6566: Function default argmnt. doesn't accept variable

From: Date: Wed, 06 Sep 2000 03:28:42 +0000
Subject: PHP 4.0 Bug #6566: Function default argmnt. doesn't accept variable
Groups: php.dev 
Request: Send a blank email to php-dev+get-32291@lists.php.net to get a copy of this message
From: amri@easternaura.com 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

« previous php.dev (#32291) next »