Re: getopt bc break 5.2 -> 5.3
| From: | Richard Quadling | Date: | Mon, 08 Aug 2011 12:09:00 +0000 |
| Subject: | Re: getopt bc break 5.2 -> 5.3 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54465@lists.php.net to get a copy of this message | ||
On 8 August 2011 12:40, Martin Spütz <martin@spuetz.net> 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) {
> ["p"]=>
> string(6) "foobar"
> }
>
> PHP 5.3.6 (cli) (built: Aug 8 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
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea