Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54465 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35561 invoked from network); 8 Aug 2011 12:09:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2011 12:09:24 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:59832] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/E2-17191-3F1DF3E4 for ; Mon, 08 Aug 2011 08:09:24 -0400 Received: by qyl38 with SMTP id 38so1390926qyl.8 for ; Mon, 08 Aug 2011 05:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=bCnWZPEIJjV7Ggw1nwsZ1n/LHImcns67kNhUOif+j0g=; b=GVStgrF4wmRpjjoUkY378b1NKssnrLhIV6TDqVc2CnN0BFV+/9+gDn4J0feCEsVSQ7 fJ7ovo/r0f7eOA6xhgXqR9pxNoHRhSkCQfsbaLuIsC4P5ptBR6ATrMQhvv/6UC9wOtU5 8fnZGDXk9oUt2nR02cCAT3GK2qwnlOC4zejc0= Received: by 10.229.46.18 with SMTP id h18mr4091763qcf.141.1312805360215; Mon, 08 Aug 2011 05:09:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.86.20 with HTTP; Mon, 8 Aug 2011 05:09:00 -0700 (PDT) Reply-To: RQuadling@GMail.com In-Reply-To: <4E3FCB12.70707@spuetz.net> References: <4E3FCB12.70707@spuetz.net> Date: Mon, 8 Aug 2011 13:09:00 +0100 Message-ID: To: =?UTF-8?Q?Martin_Sp=C3=BCtz?= Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] getopt bc break 5.2 -> 5.3 From: rquadling@gmail.com (Richard Quadling) On 8 August 2011 12:40, Martin Sp=C3=BCtz wrote: > Hello, > > I have a lot legacy code that doesn't work with 5.3's getopt. > > PHP 5.2.14 (cli) (built: Sep 24 2010 12:50:53) > > $ php test.php Module.Controller.Action -p foobar > array(1) { > =C2=A0["p"]=3D> > =C2=A0string(6) "foobar" > } > > PHP 5.3.6 (cli) (built: Aug =C2=A08 2011 11:02:31): > > $ php test.php Module.Controller.Action -p foobar > array(0) { > } > > test.php: > var_dump(getopt("p:")); > > Is this by-design? > > Thanks, > Martin Can you try ... php test.php -- Module.Controller.Action -p foobar --=20 Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea