Skip to content

Fix #80960: opendir() warning wrong info when failed on Windows #6872

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

Closed
wants to merge 4 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Apr 16, 2021

Firstly, we must not forget to set appropriate error codes for "manual"
checks in virtual_file_ex().

Secondly, we must not call php_error_docref2() for warnings regarding
unary functions; thus, we introduce php_win32_docref1_from_error().

Firstly, we must not forget to set appropriate error codes for "manual"
checks in `virtual_file_ex()`.

Secondly, we must not call `php_error_docref2()` for warnings regarding
unary functions; thus, we introduce `php_win32_docref1_from_error()`.
@cmb69 cmb69 added the Bug label Apr 16, 2021
@cmb69
Copy link
Member Author

cmb69 commented Apr 16, 2021

Ah, need to fix some other tests.

@cmb69 cmb69 marked this pull request as draft April 16, 2021 17:05
cmb69 added 2 commits April 19, 2021 13:40
`opendir()` is a unary function, and as such must not report two
arguments.
The actual number of underscores varies depending on the path of the
test case; let's not expect any particular number.  Furthermore, we
should not expect a certain failure message, since these are localized
on Windows; it should be sufficient to check for the error code.
@cmb69 cmb69 marked this pull request as ready for review April 19, 2021 12:23
@cmb69 cmb69 closed this in ea3c992 Apr 19, 2021
@cmb69 cmb69 deleted the cmb/80960 branch April 19, 2021 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants