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