1--TEST--
2php://fd wrapper: invalid file descriptor
3--FILE--
4<?php
5fopen("php://fd/1023", "w");
6
7echo "\nDone.\n";
8?>
9--EXPECTF--
10Warning: 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
11
12Done.
13