Skip to content

Fix odbc_data_source_001.phpt #15254

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 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Aug 6, 2024

As of PHP 8.1.0, passing null to an int parameter is deprecated, and as such the deprecation notice breaks the test. So we instead pass an integer, and to avoid hard-coding a value we just add the two supported constants (which are supposed to have the values 1 and 2, respectively).


Note that this test is skipped in CI since no data sources are configured. Programatically configuring data sources (file data sources won't work) is possible, but would require some new code in ext/zend_test or fiddling with the registry manually. I don't think that running this test in CI justifies the required effort, though.

As of PHP 8.1.0, passing `null` to an `int` parameter is deprecated,
and as such the deprecation notice breaks the test.  So we instead pass
an integer, and to avoid hard-coding a value we just add the two
supported constants (which are supposed to have the values `1` and `2`,
respectively).
@cmb69 cmb69 closed this in 6713d51 Aug 6, 2024
@cmb69 cmb69 deleted the cmb/odbc_data_source_001 branch August 6, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants