-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/posix: adding posix_mkfifoat/posix_mknodat. #13829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
b2346e1
to
d0fcce3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good if you could provide some better test showing how it could be useful in PHP context.
bool(false) | ||
bool(false) | ||
posix_mknodat(): Argument #4 ($major) cannot be 0 for the POSIX_S_IFCHR and POSIX_S_IFBLK modes | ||
bool(false) | ||
bool(false) | ||
posix_mkfifoat(): Argument #1 ($file_descriptor) must be of type int|resource, stdClass given |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is pretty much just a failure test. Can you write some success test with appropriate skips?
ext/posix/posix.c
Outdated
#ifdef HAVE_MAKEDEV | ||
php_dev = makedev(major, minor); | ||
#else | ||
zend_value_error("Cannot create a block or character device, creating a normal file instead"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a warning if we want to continue the execution
The additional directory file descriptor argument allows to operate from a relative path perspective but those new calls can still work with absolute paths.
e4cfd18
to
613e8d7
Compare
The additional directory file descriptor argument allows to operate from a relative path perspective but those new calls can still work with absolute paths.