ID: 6566 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Variables related Operating System: Redhat Linux 6.2 PHP Version: 4.0.2 New Comment:
Still apparant in PHP 4.2.3 and 4.3.0 As stated this behaviour is documented and will not change. Why is this? Would Incompatibility with PHP3, being it only the minority of PHP servers are still running PHP3, be the issue? Previous Comments: ------------------------------------------------------------------------ [2000-09-05 23:51:21] [EMAIL PROTECTED] Forgot to close. ------------------------------------------------------------------------ [2000-09-05 23:50:25] [EMAIL PROTECTED] Documented incompatibility between PHP3 & PHP4, probably will not change. ------------------------------------------------------------------------ [2000-09-05 23:31:13] [EMAIL PROTECTED] Default function argument doesn't accept variable. function echoname ($name = 'bob') works fine but $bob = '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 ------------------------------------------------------------------------ [2000-09-05 23:28:42] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=6566&edit=1
