Re: [PHP-DEV] getopt bc break 5.2 -> 5.3

2011-08-08 Thread Martin Spütz
On 08.08.2011 14:09, Richard Quadling wrote: > Can you try ... > > php test.php -- Module.Controller.Action -p foobar I tried $ php test.php -p foobar -- Module.Controller.Action that gave me: array(1) { ["p"]=> string(6) "foobar" } But that doesn't help me much. I could add a prepend_fil

[PHP-DEV] getopt bc break 5.2 -> 5.3

2011-08-08 Thread Martin Spütz
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.Acti