Stream register

repro case (first load works as expected, reload -> core dumped)
Fix drupal stream register
fix #956 & #966

<code>
<?php
class stream{
public $name;
}
stream_wrapper_register("public", "stream");
stream_wrapper_register("private", "stream");
stream_wrapper_register("AA", "stream");
var_dump(stream_get_wrappers());
?>
<code>