zendtech / IbmiToolkit

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

TrimCharFields #175

Closed sluggern67 closed 2 years ago

sluggern67 commented 2 years ago

Some Toolkit functions fails when using ODBC transport with TrimCharFields set to 1 (Fixed length char fields are returned without trailing spaces). I don't see any errormessage, the connection just times out.

I've encountered this when getting memberlist from a file with multiple members.

The issue can be seen with 2 minor changes to samples/test_toolkit_odbc.php:

alanseiden commented 2 years ago

@sluggern67 Thank you. We will look into this.

alanseiden commented 2 years ago

Note to all, outside of the toolkit we are working with the issue poster on the root cause of the character encoding issues that led to the use of TrimCharFields.

alanseiden commented 2 years ago

We are working on the encoding issue at the PDO_ODBC level. https://bugs.php.net/bug.php?id=81688 Will close this toolkit issue.