Bug #10730: Problems with COM objects

From: Date: Tue, 08 May 2001 13:17:02 +0000
Subject: Bug #10730: Problems with COM objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-54381@lists.php.net to get a copy of this message
From: Pietro.Picca@cern.ch Operating system: Windows NT PHP version: 4.0.5 PHP Bug Type: Unknown/Other Function Bug description: Problems with COM objects Dear Sirs, I am a user of a provider equipped with Windows NT, and not a web administrator directly. On their servers, the new version of PHP has been installed on last Friday, and all my previous scripts interfacing to MS Access databases do not work any longer. The error generated is the following: "PHP has encountered an Access Violation at 2474FF04" The lines generating this are the following: $dbc = new COM("ADODB.Connection"); $dbc->open("DRIVER={Microsoft Access Driver (*.mdb)};DBQ=$dbpath"); $rs = $dbc->execute("SELECT Contatore FROM Contatori WHERE Riferimento = '$origin'"); where $dbpath contains the absolute path of the database on the server and $origin is a parameter for the SQL statement. I'd like to add that this lines were perfectly working with the 4.0.4 version. I know the best thing to do would be use ODBC, but unfortunately my provider does not allow its users to manage DNS. So, I would only like to report this bug. Thanks for your attention, Pietro M. Picca Delphi Webmaster (CERN) -- Edit Bug report at: http://bugs.php.net/?id=10730&edit=1

« previous php.dev (#54381) next »