[IBMi] Use buffer's real length for pconnect check
[IBMi] Use buffer's real length for pconnect check

The buffer is an unknown state, but likely all zeroes. Using zero here
would result in spurious messages in the job log.

php/pecl-database-ibm_db2,php/pecl-database-ibm_db2