Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Chris Aitken
On Fri, 13 Apr 2001, Rasmus Lerdorf wrote: >If a function has not been defined to take optional arguments, then you >*must* provide these arguments when you call the function. The fact that >previous versions of PHP incorrectly let you do this was at best an >undocumented misfeature, but more li

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Rasmus Lerdorf
If a function has not been defined to take optional arguments, then you *must* provide these arguments when you call the function. The fact that previous versions of PHP incorrectly let you do this was at best an undocumented misfeature, but more likely a bug. And yes, having optional arguments

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Chris Aitken
On Fri, 13 Apr 2001, Hardy Merrill wrote: >I found the same problem - when we upgraded to PHP4, function calls >that used to work and NOT provide all the parameters, started failing. > >The way I fixed it was to give each parameter a default value *IN* >the function definition, like: > >function

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Hardy Merrill
Chris Aitken [[EMAIL PROTECTED]] wrote: > 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] Calling Functions without all the arguments

2001-04-13 Thread Chris Aitken
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 > >--