Open
Description
$options['trustedcontext'] = DB2_TRUSTED_CONTEXT_ENABLE; // $options passed to db2_connect
Is enough to cause a message like:
PHP Warning: db2_connect(): Error occurred in SQL Call Level Interface SQLCODE=-99999
The trusted connection stuff is inert on IBM i (IIRC, it's not supported by SQL/CLI on it). It should be doing nothing, rather than mucking things up.
Likely resolution: just #ifdef it out. A lot of trusted context stuff is already this way, so it's curious it's not here.