Re: RFC: stream notification handlers

From: Date: Mon, 08 Apr 2002 14:13:32 +0000
Subject: Re: RFC: stream notification handlers
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-82266@lists.php.net to get a copy of this message
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" <wez@thebrainroom.com> 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 :)"

« previous php.dev (#82266) next »