zendframework/zf2 — pull request #6879 by adamlundrigan (2014-11-15 14:45:35+00:00)
Title: Rebased and cleaned up #6279

## Issue summary
In `Zend\Config\Reader\Xml`, loading an XML file with elements having both attributes and a node value the node value is lost:

Loading this XML file:
```

bazbat

```

Would result in an array like this:

```
array(1) {
'one' =>
array(2) {
[0] =>
array(2) {
'foo' =>
string(3) "bar"
}
}
}
```

## Fix

If an element has attributes then read the node value and place it in the special array key `_`

## Ack
Fix contributed by @catalint