Re: PHP 4.0 Bug #6047 Updated: pre-defined parameters not set

From: Date: Wed, 09 Aug 2000 19:26:38 +0000
Subject: Re: PHP 4.0 Bug #6047 Updated: pre-defined parameters not set
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-28310@lists.php.net to get a copy of this message
You could always do function test($a) { if (empty($a)) $a = "Default"; } On 10 Aug 2000, Bug Database wrote the following to php-dev@lists.php.net : > ID: 6047 > Updated by: hholzgra > Reported By: jake.b@ision.net.uk > Status: Open > Bug Type: Scripting Engine problem > Assigned To: > Comments: > > well, you pass an unset variable to your > function and isset() inside your function > tells you so, what is the problem? > > obviously a feature, and ok IMHO, if you > really do not like it you might re-issue > it as a feature request > > Full Bug description available at: http://bugs.php.net/?id=6047 > > >

« previous php.dev (#28310) next »