1--TEST--
2E_ERROR during UserStream Open
3--FILE--
4<?php
5
6class FailStream {
7  public $context;
8  public function stream_open($path, $mode, $options, &$opened_path) {
9    _some_undefined_function();
10  }
11}
12stream_wrapper_register('mystream', 'FailStream');
13fopen('mystream://foo', 'r');
14echo 'Done';
15?>
16--EXPECTF--
17Fatal error: Uncaught Error: Call to undefined function _some_undefined_function() in %s%euser-stream-error.php:%d
18Stack trace:
19#0 [internal function]: FailStream->stream_open('mystream://foo', 'r', 0, NULL)
20#1 %s%euser-stream-error.php(%d): fopen('mystream://foo', 'r')
21#2 {main}
22  thrown in %s%euser-stream-error.php on line %d
23