Issues

ZF-5624: Unable to handle '=' in long options

Issue Type: Bug Created: 2009-01-23T08:18:48.000+0000 Last Updated: 2009-04-01T04:36:02.000+0000 Status: Resolved Fix version(s): - 1.7.4 (02/Feb/09)

Reporter: Luke Richards (lukerichards) Assignee: Ralph Schindler (ralph) Tags: - Zend_Console_Getopt

Related issues: Attachments:

Description

Code to reproduce the problem:

<pre class="highlight">
$options = new Zend_Console_Getopt(
    array(
        'foo=s'  => 'Option One'
    ),
    array(
        0 => '/path/to/script.php',
        1 => '--foo=some text containing an = sign which breaks'
    )
);
print_r($options->toArray());

Expected output:

<pre class="highlight">
Array
(
    [0] => foo
    [1] => some text containing an = sign which breaks
)

Actual Output:

<pre class="highlight">
Array
(
    [0] => foo
    [1] => some text containing an
)

Comments

Posted by James Dempster (letssurf) on 2009-01-23T09:01:23.000+0000

fix in r13760

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2009-04-01T04:36:01.000+0000

correct fix version

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts