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
 [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

Pull Requests

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: Mon Dec 30 14:01:28 2024 UTC