Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42092 invoked from network); 30 Dec 2008 00:24:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2008 00:24:18 -0000 Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 74.125.46.31 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 74.125.46.31 yw-out-2324.google.com Received: from [74.125.46.31] ([74.125.46.31:13399] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/55-08292-03A69594 for ; Mon, 29 Dec 2008 19:24:17 -0500 Received: by yw-out-2324.google.com with SMTP id 5so2547941ywb.83 for ; Mon, 29 Dec 2008 16:24:13 -0800 (PST) Received: by 10.65.75.2 with SMTP id c2mr11006487qbl.12.1230596652866; Mon, 29 Dec 2008 16:24:12 -0800 (PST) Received: from ?192.168.1.132? (CPE0018f8c0ee69-CM000f9f7d6664.cpe.net.cable.rogers.com [72.138.241.182]) by mx.google.com with ESMTPS id p9sm24648191qbp.35.2008.12.29.16.24.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Dec 2008 16:24:11 -0800 (PST) Cc: Daniel Brown , "Brian A. Seklecki" , PHP Development Message-ID: <727FD055-A318-4E58-96C1-56936F422D62@prohost.org> To: Kalle In-Reply-To: <0EF4028C-3E68-418F-A7CF-FCBF7B1163C4@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 29 Dec 2008 19:24:10 -0500 References: <0EF4028C-3E68-418F-A7CF-FCBF7B1163C4@gmail.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2) From: ilia@prohost.org (Ilia Alshanetsky) There is nothing wrong with using WRONG_PARAM_COUNT, it worked in the past and still works fine and quite a bit of code still uses it. The code itself should work on windows, if the define for the function is specified. On 29-Dec-08, at 7:00 PM, Kalle wrote: > Hi Ilia > > Den 30/12/2008 kl. 00.30 skrev Ilia Alshanetsky : > >> Here is a pretty simple patch that will provide the indicated >> function. If no one objects I'll commit it to 5.3/6 branches in the >> next day or two. >> >> > > You should use zend_parse_parameters_none() here. > > I have no test env here, but does it work on Windows? >> >> >> >> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> >> >> >> >> > > > -Kalle Ilia Alshanetsky