ID:               33596
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marko dot sirovnik at korona dot si
-Status:           Open
+Status:           Bogus
 Bug Type:         COM related
 Operating System: Windows 2003 Server
 PHP Version:      4CVS-2005-07-06 (stable)
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Please try PHP 5


Previous Comments:
------------------------------------------------------------------------

[2005-07-06 23:55:06] marko dot sirovnik at korona dot si

Description:
------------
Hi!

I'm using ADOMD COM object in order to connect to OLAP database. When
the Web Server and the DB Server are on the same computer I can manage
to connect to OLAP DB (COM approach). But when DB Server is on on PC
and Web Server on another PC it is impossible for me (DCOM
connection).

Short configuration:
  OS: Windows 2003 Server
  Web: IIS (comes with Win2003Srv)
  DB: Microsoft SQL Server
  OLAP: Microsoft Analysis Services
  COM/DCOM object: ADOMD
-----------------------
PHP.INI
[com]
;com.typelib_file = 
com.allow_dcom = true
com.autoregister_typelib = true
;com.autoregister_casesensitive = false
;com.autoregister_verbose = true
------------------------

I made ADOMD DCOM test with Visual Basic and it works fine.

Any help or idea how to remove this obstacle I appreciate.

Thanks to All!
Marko

Reproduce code:
---------------
<?php
        $dsn = 'DATA SOURCE=blackbox;UID=sa;Initial Catalog=FoodMart
2000;Provider=MSOLAP;Encoding=windows-1250;Roles=skrbnik;';
        //$cat = new COM('ADOMD.Catalog');
        $cat = new COM('ADOMD.Catalog', array(
                "Server" => "blackbox",
                "Username" => "administrator",
                "Password" => "default"));
    if (is_null($cat)) {
        echo '<B>Sorry, problem with COM object.</B><BR>';
        echo '$cat = ' ;
        var_dump ($cat);
        return;
    } else {
        echo '<BR><B>Connection with OLAP has been established.</B>';
    }
        $cat->ActiveConnection = $dsn;
    var_dump ($cat);
?> 

Expected result:
----------------
DCOM connection should be different then "Null". Furthermore, a message
"Connection with OLAP has been established." is expected to be seen in
Web browser.

Actual result:
--------------
With PHP Version 4.3.6 the following warrning has arrised:
"Unable to obtain IDispatch interface for CLSID
{228136B0-8BD3-11D0-B4EF-00A0C9138CA4}: Class not registered in
c:\inetpub\wwwroot\aaa1.php on line 3
Sorry, problem with COM object."

PHP Version 4.4.0RC3-dev:
"PHP has encountered an Access Violation at 0184A8A8?$?? °Ew??????
?U?\??????????c?O2????Ty
?m?OqeRV#88?N???????<_N>?U"?????JD&#378;p???r'???)JK]v^?M7???Z??6?C??P?\??v???8d??
<?/?"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33596&edit=1

Reply via email to