mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
39ef5ca31c
And suppress the nonsensical warnings by passing the PHP_STREAM_CAST_INTERNAL flag.
18 lines
298 B
PHP
18 lines
298 B
PHP
--TEST--
|
|
stream_isatty(): uncastable user stream
|
|
--FILE--
|
|
<?php
|
|
|
|
require __DIR__ . '/DummyStreamWrapper.inc';
|
|
stream_wrapper_register('custom', DummyStreamWrapper::class);
|
|
|
|
$fp = fopen("custom://myvar", "r+");
|
|
var_dump(stream_isatty($fp));
|
|
fclose($fp);
|
|
|
|
echo "Done";
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
Done
|