On Mon, Apr 08, 2002 at 03:43:57PM +0200, Jan Lehnardt wrote : > Hi, > On Mon, 8 Apr 2002 13:15:27 +0100 > "Wez Furlong" <[EMAIL PROTECTED]> wrote: > > > proto resource fopen(string filename, string mode > > [, bool use_include_path [, resource context]]) > context is only optional if you use use_include_path in this proto. Is > that desired? Don't you mean > > proto resource fopen(string filename, string mode > [, bool use_include_path] [, resource context])
An optional parameter following an optional parameter means to set the second optional parameter you _have_ to give the first parameter a value too hence in that context it's not optional anymore. So, writing stirng mode [, bool use_path [, resource ctx]] is correct (as long as PHP does not have a place holder to leave out consecutive optional parameters. - Markus -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc "Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)" -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php