Issues

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

Description

Code to reproduce the problem:


$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:


Array
(
    [0] => foo
    [1] => some text containing an = sign which breaks
)

Actual Output:


Array
(
    [0] => foo
    [1] => some text containing an
)

Comments

fix in r13760

correct fix version