Skip to content

Commit 26cec7b

Browse files
committed
posix: validate mode argument in posix_access
1 parent 6e2db41 commit 26cec7b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ext/posix/tests/posix_access_flags.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ if (posix_access($testfile, POSIX_R_OK | POSIX_W_OK)) {
4545
if (posix_access($testfile, POSIX_F_OK)) {
4646
echo "File exists OK\n";
4747
}
48-
48+
?>
49+
--CLEAN--
50+
<?php
4951
unlink($testfile);
5052
?>
5153
--EXPECTF--

0 commit comments

Comments
 (0)