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
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
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
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
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
>
>--
5 matches
Mail list logo