Skip to content

Commit 43dc7da

Browse files
committed
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.
1 parent 601aef3 commit 43dc7da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/tests/file/php_fd_wrapper_04.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
php://fd wrapper: invalid file descriptor
33
--FILE--
44
<?php
5-
fopen("php://fd/120", "w");
5+
fopen("php://fd/1023", "w");
66

77
echo "\nDone.\n";
88
--EXPECTF--
9-
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
9+
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
1010

1111
Done.

0 commit comments

Comments
 (0)