|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-27 12:58 UTC] helmut_tessarek at evermeet dot cx
[2006-11-01 18:30 UTC] kfbombar at us dot ibm dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 06:00:01 2025 UTC |
Description: ------------ db2_procedures & db2_ procedure_columns does not work when connected with a persistent connection. When looking at the CVS I noticed that these two functions were retrieving the DB2 connection with the ZEND_FETCH_RESOURCE function while all the other functions used ZEND_FETCH_RESOURCE2 to get the DB connection. I updated the source to mimic the other functions and it works great now. P.S. - The functions work fine when db2_connect is used instead Reproduce code: --------------- $cnx = db2_pconnect('db', 'user', 'pass', $options); $r = db2_procedures($cnx,NULL,'SCHEMA','%%'); print_r(db2_fetch_assoc($r)); Expected result: ---------------- Array ( [procedure_cat] => [procedure_schem] => SCHEMA [procedure_name] => PROCNAME [num_input_params] => 2 [num_output_params] => 1 [num_result_sets] => 0 [remarks] => [procedure_type] => 1 ) Actual result: -------------- Warning: db2_procedures(): supplied resource is not a valid Connection Resource resource Warning: db2_fetch_assoc() expects parameter 1 to be resource, boolean given