| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-05-22 18:50 UTC] tjd1066 at rit dot edu
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
Description: ------------ Mysql over ODBC connection is the DB in use. PHP win32 zip binary dist no compile options set by me. If odbc_exec() is performed in a function it performs well and returns a result resource. However if that result resource is that returned by the function the type value that was ODBC Result changes to unknown. extension=php_java.dll extension=php_pgsql.dll session.save_path = "C:\php\tmp" Reproduce code: --------------- function doQuery ($p_Query = ""){ global $g_DatabaseName, $g_DBUserName, $g_DBPassword; $v_DBHandle = odbc_connect($g_DatabaseName,$g_DBUserName,$g_DBPassword); $v_QueryResult = odbc_exec( $v_DBHandle, $p_Query); var_dump($v_QueryResult); disposeDBHandle($v_DBHandle); return $v_QueryResult; } $result=doQuery("SELECT * FROM SHIPPERS;"); var_dump($result); Expected result: ---------------- resource(34) of type (odbc result) Actual result: -------------- resource(34) of type (Unknown)