Arguably, this is a bug in Zend Framework. I've supplied them with a fix, but it's unlikely that will be usable within XF2.0 as the current versions are compatible with PHP 5.5 and above hence we're using a slightly earlier version.
We'll probably workaround it ourselves though.