php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33016 Access Violation when trying to create any COM object
Submitted: 2005-05-12 15:00 UTC Modified: 2006-01-04 22:58 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: bas dot timmer at gmail dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 4.4.1 OS: Windows NT 4.0 Service Pack 6A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bas dot timmer at gmail dot com
New email:
PHP Version: OS:

 

 [2005-05-12 15:00 UTC] bas dot timmer at gmail dot com
Description:
------------
I get an Access Violation in php.exe, or the ISAPI dll when trying to use new COM.

Reproduce code:
---------------
<?php
$acctDomain = "localhost";
echo "Making COM connection using ADSI\n\r";
$acctStr = "WinNT://".$acctDomain;
echo "$acctStr\n\r";
$comUsers = new COM($acctStr);
echo "new COM Sucessful";
?>

Expected result:
----------------
Don't crash, just make the COM object available to me.

Actual result:
--------------
I get this error:

PHP has encountered an Access Violation at 01568A68Make User
Warning: mkdir(D:\inetpub\wwwroot\hosttest): File exists in D:\Inetpub\wwwroot\ntfunc.php on line 13

Warning: (null)(): Invalid ProgID, GUID string, or Moniker: Invalid syntax in D:\Inetpub\wwwroot\ntfunc.php on line 15

Or an DrWatson32 when trying to execute from command line.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-12 22:06 UTC] wez@php.net
Please upgrade to PHP 5.

Support for COM in PHP 4 is not available for free, since it was rewritten from scratch for PHP 5.

 [2005-05-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-01-04 22:58 UTC] techtonik@php.net
Crash reproduced on W2K SP4 + PHP 4.4.1 (cli) (built: Oct 30 2005 12:45:47).

<?php

$my = new COM("MY.UNEXISTENT") or die ("create fail");

?>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC