-
Notifications
You must be signed in to change notification settings - Fork 7.8k
oci8: most tests fail out-of-the-box #11804
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
Comments
They should indeed do that, maybe it's a simple copy/paste/adapt the skipif files from mysqli/pgsql? |
Surely. I think my main question was whether or not Is someone in charge of the oci8 extension? I don't actually have an oracle server to test the success case with. |
Technically @cjbj but they are quite busy |
Most oci8 tests fail out-of-the-box because a typical host won't have an Oracle database instance available. Other database drivers like mysqli and pgsql address this problem with an include file, inserted into SKIPIF, that skips the test if no connection at all can be made. This commits adds such a file (skipifconnectfailure.inc) for oci8, and adds the corresponding SKIPIF to any tests that connect to a database. Closes phpGH-11804
Big but straightforward PR: #11820 |
Most oci8 tests fail out-of-the-box because a typical host won't have an Oracle database instance available. Other database drivers like mysqli and pgsql address this problem with an include file, inserted into SKIPIF, that skips the test if no connection at all can be made. This commits adds such a file (skipifconnectfailure.inc) for oci8, and adds the corresponding SKIPIF to any tests that connect to a database. Closes phpGH-11804 * ext/oci8/tests/lob_aliases.phpt: drop unnecessary SKIPIF.
Description
If I build a fresh clone of php-src with,
and then run the tests, most of the oci8 tests fail:
The ones that I've looked at are all expecting to be able to connect to a running Oracle DB via
ext/oci8/tests/connect.inc
:Naturally that fails unless you've created a database at the right place and with the right credentials. The other database extensions like mysqli and pgsql handle this by skipping the tests if a connection cannot be made, as in
ext/mysqli/tests/skipifconnectfailure.inc
orext/pgsql/tests/skipif.inc
. I think oci8 should do the same.PHP Version
git HEAD
Operating System
No response
The text was updated successfully, but these errors were encountered: