Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25976 invoked from network); 4 Aug 2008 11:02:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2008 11:02:33 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:56907] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/6F-46562-8C1E6984 for ; Mon, 04 Aug 2008 07:02:33 -0400 Received: (qmail 25493 invoked by uid 507); 4 Aug 2008 11:02:29 -0000 Received: from ppp-82-135-94-222.dynamic.mnet-online.de (HELO ?192.168.1.101?) (postmaster%schlueters.de@82.135.94.222) by mail4.netbeat.de with ESMTPA; 4 Aug 2008 11:02:29 -0000 To: Hannes Magnusson Cc: Davey Shafik , internals@lists.php.net In-Reply-To: <7f3ed2c30808040049w7172205ey4ae460be4beabcee@mail.gmail.com> References: <220AF877-747F-4BDB-8631-235B54ED2503@php.net> <7f3ed2c30808040049w7172205ey4ae460be4beabcee@mail.gmail.com> Content-Type: text/plain Date: Mon, 04 Aug 2008 13:02:29 +0200 Message-ID: <1217847749.4175.27.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] Alias stream_context_get_default() as stream_context_set_default() From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2008-08-04 at 09:49 +0200, Hannes Magnusson wrote: > On Mon, Aug 4, 2008 at 01:29, Davey Shafik wrote: > > Hey, > > > > it has come to my attention that stream_context_get_default() > > is /grossly/ misnamed, considering [...] > That doesn't really solve anything as the argument is optional. Adding a new function which enforces the parameter sounds way better then a simple alias. > In > fact, to me it reads like the default context would be reset to > nothing. I hope not ... I'd expect it to return the current default context unchanged, else that function certainly should be replaced.... johannes