mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
17 lines
451 B
PHP
17 lines
451 B
PHP
--TEST--
|
|
php://fd wrapper: invalid file descriptor
|
|
--SKIPIF--
|
|
<?php
|
|
// At least on Mac 10.14 Mojave; not sure about older versions
|
|
if (strtolower(PHP_OS) == 'darwin') die('skip: the warning output is different on MacOS');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
fopen("php://fd/1023", "w");
|
|
|
|
echo "\nDone.\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: fopen(php://fd/1023): Failed to open stream: Error duping file descriptor 1023; possibly it doesn't exist: [9]: %s in %s on line %d
|
|
|
|
Done.
|