php-src/tests/output/stream_isatty_non_castable_user_stream.phpt
George Peter Banyard 39ef5ca31c
Add tests for uncastable streams and dataloss streams (#10173)
And suppress the nonsensical warnings by passing the PHP_STREAM_CAST_INTERNAL flag.
2023-07-10 13:24:23 +01:00

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