Fixed bug for read dictionaries from streams

https://bugs.php.net/bug.php?id=30936