Re: svn: /phpdoc/en/trunk/reference/stream/functions/ stream-context-get-options.xml

From: Date: Fri, 08 May 2015 23:19:19 +0000
Subject: Re: svn: /phpdoc/en/trunk/reference/stream/functions/ stream-context-get-options.xml
References: 1 2  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13283@lists.php.net to get a copy of this message
well, perhaps not broken as such, but it is now more clear what was meant to happen ;) - Tul On 9 May 2015 at 00:50, Peter Cowburn <petercowburn@gmail.com> wrote: > > > On 8 May 2015 at 22:12, Maciek Sokolewicz <tularis@php.net> wrote: >> >> tularis Fri, 08 May 2015 21:12:05 +0000 >> >> Revision: >> http://svn.php.net/viewvc?view=revision&revision=336740 >> >> Log: >> Fixed broken example code (patch by Hannes van de Vreken) > > > The example was not strictly broken, since stream_context_get_default() can > be used to set defaults too (there was no stream_context_set_default() prior > to PHP 5.3.0). I'm not saying the change made was incorrect, just that the > example was not "broken". > >> >> >> Changed paths: >> U >> phpdoc/en/trunk/reference/stream/functions/stream-context-get-options.xml >> >> Modified: >> phpdoc/en/trunk/reference/stream/functions/stream-context-get-options.xml >> =================================================================== >> --- >> phpdoc/en/trunk/reference/stream/functions/stream-context-get-options.xml >> 2015-05-08 21:08:43 UTC (rev 336739) >> +++ >> phpdoc/en/trunk/reference/stream/functions/stream-context-get-options.xml >> 2015-05-08 21:12:05 UTC (rev 336740) >> @@ -50,7 +50,7 @@ >> <?php >> $params = array("method" => "POST"); >> >> -stream_context_get_default(array("http" => $params)); >> +stream_context_set_default(array("http" => $params)); >> >> var_dump(stream_context_get_options(stream_context_get_default())); >> >> >> >> -- >> PHP Documentation Commits Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.doc.cvs (#13283) next »