Skip to content

Commit b3c259c

Browse files
committed
Revert "ext/posix: validate permissions argument in posix_mkfifo()"
This reverts commit 6bd97e7.
1 parent 99bf26b commit b3c259c

3 files changed

Lines changed: 0 additions & 43 deletions

File tree

NEWS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ PHP NEWS
8080

8181
- Posix:
8282
. Added validity check to the flags argument for posix_access(). (arshidkv12)
83-
. Added validity check to the permissions argument for posix_mkfifo().
84-
(arshidkv12)
8583

8684
- Reflection:
8785
. Fixed bug GH-20217 (ReflectionClass::isIterable() incorrectly returns true

ext/posix/posix.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,6 @@ PHP_FUNCTION(posix_mkfifo)
621621
RETURN_FALSE;
622622
}
623623

624-
if (mode < 0 || (mode & ~07777)) {
625-
zend_argument_value_error(2, "must be between 0 and 0o7777");
626-
RETURN_THROWS();
627-
}
628-
629624
result = mkfifo(ZSTR_VAL(path), mode);
630625
if (result < 0) {
631626
POSIX_G(last_error) = errno;

ext/posix/tests/posix_mkfifo_invalid_mode.phpt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)