zendtech / IbmiToolkit

PHP frontend to XMLSERVICE for IBM i development.
BSD 3-Clause "New" or "Revised" License
46 stars 34 forks source link

Check for PDO class #123

Closed alanseiden closed 4 years ago

alanseiden commented 4 years ago

When validating $databaseNameOrResource, we need to allow for the PDO class. This change eliminates the error message "Failed to connect. databaseNameOrResource PDO::__set_state(array( )) not valid"

alanseiden commented 4 years ago

Fixes the case where the user passes in a PDO object. Did a code review over the phone with other maintainers.