Bug #6047: pre-defined parameters not set

From: Date: Wed, 09 Aug 2000 12:15:13 +0000
Subject: Bug #6047: pre-defined parameters not set
Groups: php.dev 
Request: Send a blank email to php-dev+get-28246@lists.php.net to get a copy of this message
From: jake.b@ision.net.uk Operating system: Linux (debian) PHP version: 3.0.16 PHP Bug Type: Scripting Engine problem Bug description: pre-defined parameters not set If you pass a variable that does not exist to a function, it does not use the default values, and infact does not create the variable at all. Its hard to tell if this is a bug or a feature, either way its very annoying. Example: function test($value=10) { print isset($value); } test($non_existent_variable); Output: 0

« previous php.dev (#28246) next »