Try one more FD in ext/standard/tests/file/php_fd_wrapper_04.phpt

For some reason FD 120 seems to exist on macos quite often, while
FD 12 did not... Let's try an even larger number, otherwise we
should just drop this test.
This commit is contained in:
Nikita Popov 2019-10-27 09:33:46 +01:00
parent 601aef3468
commit 43dc7da8e3

View File

@ -2,10 +2,10 @@
php://fd wrapper: invalid file descriptor
--FILE--
<?php
fopen("php://fd/120", "w");
fopen("php://fd/1023", "w");
echo "\nDone.\n";
--EXPECTF--
Warning: fopen(php://fd/120): failed to open stream: Error duping file descriptor 120; possibly it doesn't exist: [9]: %s in %s on line %d
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.