php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17136 com and messages queue
Submitted: 2002-05-10 04:38 UTC Modified: 2002-05-30 19:38 UTC
From: fd at silversolutions dot de Assigned:
Status: Not a bug Package: COM related
PHP Version: 4.2.0 OS: windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fd at silversolutions dot de
New email:
PHP Version: OS:

 

 [2002-05-10 04:38 UTC] fd at silversolutions dot de
i tried to create a com-object in order to use microsoft messages-queues (MSMQ):
 
<?
$msmq = new COM("MSMQ.MSMQMessage") or die ("error:
MSMQ.MSMQMessage");

$msmq->PathName (".\\PRIVATE$\\SYNCHMQ");
?>

unfortunatly this example cause a error-message: "Warning: Unable to lookup pathname"

other tests with com() are working (e.g. starting word).

frank 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-10 05:33 UTC] fd at silversolutions dot de
the correct example is:

$msmq = new COM("MSMQ.MSMQMessage") or die ("objkt message-queue nicht referenzierbar!");

$queue = ".\\PRIVATE\$\\SYNCHMQ";  # escaped $ sign
echo $queue;

$msmq->PathName = $queue;  # pathname is not a function
 [2002-05-30 19:38 UTC] phanto@php.net
afaik you should use MSMQ.MSMQQueueInfo instead of MSMQ.MSMQMessage. anyways, this is not a php bug but a support question. please repost this on one of the support mailing lists (e.g. php-windows) or contact me directly per mail.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC