mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
23 lines
755 B
PHP
23 lines
755 B
PHP
--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--
|
|
Warning: fopen(mystream://foo): failed to open stream: "FailStream::stream_open" call failed in %s%euser-stream-error.php on line %d
|
|
|
|
Fatal error: Uncaught Error: Call to undefined function _some_undefined_function() in %s%euser-stream-error.php:%d
|
|
Stack trace:
|
|
#0 [internal function]: FailStream->stream_open('mystream://foo', 'r', 0, NULL)
|
|
#1 %s%euser-stream-error.php(%d): fopen('mystream://foo', 'r')
|
|
#2 {main}
|
|
thrown in %s%euser-stream-error.php on line %d
|