user-stream-error.phpt 398 B

12345678910111213141516
  1. --TEST--
  2. E_ERROR during UserStream Open
  3. --FILE--
  4. <?php
  5. class FailStream {
  6. public function stream_open($path, $mode, $options, &$opened_path) {
  7. _some_undefined_function();
  8. }
  9. }
  10. stream_wrapper_register('mystream', 'FailStream');
  11. fopen('mystream://foo', 'r');
  12. echo 'Done';
  13. --EXPECTF--
  14. Fatal error: Call to undefined function _some_undefined_function() in %s%euser-stream-error.php on line %d