2
Bug #41421 (Uncaught exception from a stream wrapper segfaults)
7
function stream_open() {
10
function stream_eof() {
11
throw new exception();
15
stream_wrapper_register("wrap", "wrapper");
16
$fp = fopen("wrap://...", "r");
22
Warning: feof(): wrapper::stream_eof is not implemented! Assuming EOF in %s on line %d
24
Fatal error: Uncaught exception 'Exception' in %s:%d
26
#0 [internal function]: wrapper->stream_eof()
27
#1 %s(%d): feof(Resource id #6)
29
thrown in %s on line %d