Re: svn: /phpdoc/en/trunk/reference/stream/functions/ stream-context-get-options.xml
| From: | Hannes Magnusson | Date: | Tue, 12 May 2015 17:10:45 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/reference/stream/functions/ stream-context-get-options.xml | ||
| References: | 1 2 3 4 5 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-13286@lists.php.net to get a copy of this message | ||
whops you are right sorry.
I thought it was example for get_default() which became example for
set_default().
Nevermind then :)
-Hannes
On Mon, May 11, 2015 at 11:25 PM, Maciek Sokolewicz
<maciek.sokolewicz@gmail.com> wrote:
>
> On May 12, 2015 1:26 AM, "Hannes Magnusson" <hannes.magnusson@gmail.com>
> wrote:
>>
>> You change the code example to be code example for a different
>> function then the page is documenting.
>>
>> I think the previous version was indeed correctly and proper, and this
>> patch unfixed it.
>>
>> -Hannes
>
> I disagree.
>
> The page documents stream_context_get_options(), not
> stream_context_get_default(). The example still uses that function. However
> the method of initially setting those options *before* reading them was
> changed.
>
> - tul
>
>> On Fri, May 8, 2015 at 4:19 PM, Maciek Sokolewicz
>> <maciek.sokolewicz@gmail.com> wrote:
>> > 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
>> >>
>> >>
>> >
>> > --
>> > PHP Documentation Commits Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >