Skip to content

Conversation

Blurazzle
Copy link
Contributor

Summary of Changes:
Updated validation to handle the Odbc\Connection and Odbc\Result return types introduced in PHP 8.4. For PHP 8.4 and above, checks are now made for Odbc\Connection (from odbc_connect()) and Odbc\Result (from odbc_exec()). Retained support for PHP 8.3 and earlier, which use resource-based return types.

Why This Change:
Ensures proper handling of ODBC connections and executions across PHP versions prior to 8.4, as well as 8.4 and above.

Testing:
Verified functionality on PHP 8.3 and 8.4 locally with successful results. The changes were tested primarily in the connect() function in Odbcsupp.php and the __construct method in Toolkit.php. Did not test the executeQuery() and disconnect() functions in Odbcsupp.php, as they are not used in my projects.

@alanseiden alanseiden merged commit f2f1180 into zendtech:master Jan 13, 2025
@Blurazzle
Copy link
Contributor Author

@alanseiden, thanks for merging this pull request. Are there any plans to release a new version?

@alanseiden
Copy link
Collaborator

@jonkerw85 And thanks for your code contribution! Yes, we should make a new release soon. Thanks for pointing that out.

@alanseiden
Copy link
Collaborator

@jonkerw85 New release 1.9.5 has been tagged that includes this PR. https://github.com/zendtech/IbmiToolkit/releases/tag/1.9.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants