parameters in php4
| From: | Sjef Janssen | Date: | Fri, 13 Dec 2002 16:39:18 +0000 |
| Subject: | parameters in php4 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-9383@lists.php.net to get a copy of this message | ||
Hallo,
I used to have php3 installed on my machine. Now I installed php4 (4.2.3)
and it seems parameters are handled differently.
In a function I have a parameter set to a default value, as:
function blabla($p1=0,$p2=0)
{
}
I get an error when calling the function saying that the parameters are
empty!
Secondly I use $PHP_SELF to set the action in a form. The error says
$PHP_SELF is also empty. Apparently this changed since 4.1.0.
Is there a way to make this work instaed of rewriting all my scripts
containing forms?
Thanks,
Sjef