Calling Functions without all the arguments

From: Date: Fri, 13 Apr 2001 14:11:38 +0000
Subject: Calling Functions without all the arguments
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48446@lists.php.net to get a copy of this message
On Fri, 13 Apr 2001, Chris Aitken wrote: >--------------------------------------- > >Warning: Missing argument 2 for stripe() in /location/to/included/file.php on line 257 >Warning: Missing argument 3 for stripe() in /location/to/included/file.php on line 257 > >--------------------------------------- > Okay, ive managed to do some more playing, and come up with some more info. The above error only shows up when I have a function being called without all the arguments filled in. For example, if I have a function as "function blah($foo,$bar)" and call the function with both $foo and $bar set, it will run just fine. But if I call it with only $foo it comes up with these errors. The thing is, the previous version of PHP must have alowed me to call functions without all the arguments and it never batted an eyelid or gave an error. My question is, is there something I didnt compile into the new PHP, or is there a line in php.ini file I need to modify so that it doesnt show these errors up (or should I adjust my code so that I dont call functions without all the arguments) ? Chris

« previous php.general (#48446) next »