|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-27 06:04 UTC] phanto@php.net
[2002-04-27 06:22 UTC] a dot fakos at web dot de
[2002-05-30 19:21 UTC] phanto@php.net
[2003-02-13 03:25 UTC] webber123456 at hotmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
php binary: v4.1.2 downloaded from www.php4win.de adodb: ms activex data objects 2.7 library adox : ms ado ext. 2.5 for dll and security webserver: apache 1.3.20 ...................................................... a fatal error occured with following original message: "Die Anweisung in '0x100829c3' verweist auf Speicher in 0x00000008. Der Vorgang 'read' konnte nicht in den Speicher durchgef?hrt werden." english (similar): "Statement at '0x100829c3' refers to memory 0x00000008. memory-process 'read' could not be executed" error log: Premature end of script headers: path-to/php.exe ...................................................... at the end of this bug-report i post a sample-script, which you can test it. trivial: the fatal error occured always if the script is finished. please look in function tableExists, statement @$cat-ActiveConnection. the supply of an adodb.connection object occurs fatal error with an access oledb-provider as sql-server oledb-provider. ...................................................... <?php class test { var $connection; var $user = "Admin"; var $pw = ""; var $connstr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=path-to\Nordwind.mdb; Persist Security Info=False"; function test() { $this->connection = new COM("ADODB.Connection"); if (!$this->connection) { die (print "could not create an instance of adodb.connection"); } @$this->connection->Open($this->connstr, $this->user, $this->pw); } function tableExists($value) { $ok = false; $cat = new COM("ADOX.Catalog"); if ($cat) { //@$cat->ActiveConnection = $this->connection; //<-- with this statement we receive a fatal error @$cat->ActiveConnection = $this->connection->ConnectionString; //<-- but setting the conn-string works fine $tables = @$cat->Tables; $count = $tables->Count(); for($i = 0; $i < $count; $i++) { $table = $tables->Item($i); if (strtolower($table->Type) != "view" && strtolower($table->Name) == strtolower($value)) { $ok = true; break; } } $table->Release(); $table = null; unset($table); $tables->Release(); $tables = null; unset($tables); $cat->Release(); $cat = null; unset($cat); } return $ok; } } // end class $test = new test(); $ret = $test->tableExists("dummy_table"); echo (integer) ret; ?>