From:             kaija_jan at hotmail dot com
Operating system: windows 2k
PHP version:      5.0.0RC1
PHP Bug Type:     COM related
Bug description:  reading data from Access thrugh COM function

Description:
------------
i try to use COM function to read data from Access database.

but if the fields type is ole object. the data will different with the asp
code.

here is my php code. the type of field "test" is oleobject.

there is no error during run time.

Reproduce code:
---------------
<?

        $oConn = new COM("ADODB.Connection");

        

        $oConn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\abc.mdb");

        

        $oRs = $oConn->Execute("select * from test");

        

        $a = "c:\abc";

        

        while(!$oRs->EOF)

        {

                $Data = $oRs->Fields->["test"]->value;

                

                $oRs->MoveNext();

        }

        

        $oRs->Close();

        $oConn->Close();

        

        $oRs->Release();

        

        unset($oRs);

        unset($oConn);

?>


-- 
Edit bug report at http://bugs.php.net/?id=27770&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27770&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27770&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27770&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27770&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27770&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27770&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27770&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27770&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27770&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27770&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27770&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27770&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27770&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27770&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27770&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27770&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27770&r=float

Reply via email to