summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/user-stream-error.phpt
blob: e7351b4916c21baa3c43a44eb839107763e465c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
E_ERROR during UserStream Open
--FILE--
<?php

class FailStream {
  public function stream_open($path, $mode, $options, &$opened_path) {
    _some_undefined_function();
  }
}
stream_wrapper_register('mystream', 'FailStream');
fopen('mystream://foo', 'r');
echo 'Done';

--EXPECTF--
Fatal error: Call to undefined function _some_undefined_function() in %s/user-stream-error.php on line %d