1--TEST--
2Bug#74951 Null pointer dereference in user streams
3--FILE--
4<?php
5trait Stream00ploiter{
6  public function s() {}
7  public function n($_) {}
8}
9stream_wrapper_register('e0ploit','Stream00ploiter');
10$s=fopen('e0ploit://',0);
11--EXPECTF--
12Warning: fopen(e0ploit://): failed to open stream: operation failed in %s%ebug74951.php on line 7
13