None circular dependency being detected as a circular dpendency in some instances
Removed @package
Zend\Http\Header\SetCookie changed to support empty cookies

$keyValue is receiving value with '=' when the cookie is empty.

Issue #5475
Add input filter from elements before the form input filter

Input filters returned by the element getInputSpecification() are added
to the chains before the form input filters returned by
getInputFilterSpecification(). Also, it creates the replace() method in
BaseInputFilter, that allows the filters to be replaced without having
to remove them first. As the filters must be merged,
preferFormInputFilter must be set to false on the forms.
DocBlock update
DocBlock update
Set Form::$preferFormInputFilter to false on Form::setInputFilter() call

Set Form::$preferFormInputFilter to false if user don't explicitly set
its value and call Form::setInputFilter()
Update collection recursive extract and populating nested fieldsets

Appending the child object to the child fieldset instead the parent one. Setting values of child fieldset as the correct extract
Specify correct return type for `Pdo\Connection::getLastGeneratedValue`

See http://php.net/manual/en/pdo.lastinsertid.php for reference that it returns `sting` instead of `int`.

TODO: change type of `$lastInsertValue` property and `getLastInsertValue` method in `Zend/Db/TableGateway/AbstractTableGateway.php` accordingly.
Changed to handle whitespaces after '='
Using preg_replace
Changing regex to support empty headerValue
add tests for 5455
Merge pull request #1 from ClemensSahs/hotfix/5455_tests

add tests for 5455
Add ReplaceableInputInterface
Test rewrite for avoid test skip. Related #5592
Adding attributes to fieldsets. Legends are optional for fieldsets.

As the comment says: Every collection is wrapped by a fieldset if needed

A legend is not required for a fieldset.
* Now, if a label is specified, a legend will be created.
* Before, a fieldset would not be wrapped around the markup unless a label was set.
* Now, a fieldset will be wrapped around the markup if $this->shouldWrap is true, regardless if a label has been set for the legend.
Adding attributes to fieldsets, this allows for the space.
Fix in the Collection Element implementation

The current implementation of Collection Element imposes, in
prepareFieldset(), that the child element keys are set sequentially,
starting from 0. After that, populateValues() will remove the unused
indexes and add new ones, according to the input data. This behaviour
breaks the test in this commit, as it expects that the first key will
always be '0', which is not always true, as when collection elements
are dinamically added or removed with javascript. The changes done here
makes Collection Element more flexible and maybe a little faster, as it
saves resources by avoiding unnecessary creation of child elements,
adding them just when neccessary. Also, self::$lastChildIndex can be
sent along with the template, so javascript can set a proper index for
the next element to be added. FieldsetPrepareAwareInterface and all its
references were removed, as they are no longer necessary.
Add test from issue #5010