-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix bug71610.phpt #16063
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
Closed
Fix bug71610.phpt #16063
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think that we should assume this file to always exist, and let the test fail if it does not. Otherwise it will silently become always-skipped if we move the file without updating it.
I would suggest to use
include __DIR__ . "/../../../sapi/cli/tests/skipif.inc"
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.
Well, for our purposes, at least regarding CI, this is certainly a good idea. However, some may build ext/soap via phpize (I assume distro managers do that), and in that case it is unlikely that the file exists.
include
will trigger a warning, and the test would be reported as borked.Given that the file is already used elsewhere, that opcache has its own (diverged) copy, and that I would like to use this server for ext/standard/tests/http and ext/ftp/tests (these currently have servers which require the posix extension), I hope we can come up with a more general solution.
Not perfect, and might have issues, but what about storing symlinks in the repository?
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.
I didn't realize these tests could be executed in a standalone pecl build. Skipping the test like this seems reasonable then.
I agree that it would be nice to have a more general solution at some point.
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.
Do you mean symlinking the .inc file into ext/soap so that exports of the ext source code also contain it? I don't have experience with symlinks in git, but this could be an option indeed. An alternative could be to distribute/install a testing library along with run-tests.php or phpize (with the downside that evolving this library would be subject to BC).
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.
I've already did #16066, but @iluuu1994 suggested to go with a simple PHP include file instead of the symlinks (these have issues anyway; you need Windows 10 with developer mode enabled to have them properly work, and a somewhat recent git version, properly configure to accepts symlinks). And I guess, exporting the sources will not automatically resolve the symlinks. We could do that manually, though, through
./configure
. (not sure about the details)Yeah, that is what I would like, but I also see the problems.
Still, a first step to avoid those lengthy "parent paths" would be a good thing[TM].