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