|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43432 Fatal error when setting the value of COM object's Attribute property
Submitted: 2007-11-27 21:19 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: scr34m at frontember dot hu Assigned:
Status: Open Package: COM related
PHP Version: 5.2CVS-2007-11-27 (snap) OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-11-27 21:19 UTC] scr34m at frontember dot hu
The COM runs well in ASP:


'The Attribute property specifies and retrieves name-value pairs.
'Header.Attribute(bstrName) = String
'String = Header.Attribute(bstrName)
'Parameters: bstrName [in] ,String containing the attribute name. 
'Attribute names are case-sensitive, and both the name and value must be
specified in a valid 'XML format. If you duplicate an existing
attribute, the earlier attribute is updated.

Dim rid
rid = "0"
Set headobj = Server.CreateObject("Wmrmobjs.WMRMHeader")
headObj.Attribute("RID") = rid 


But when I convert it to PHP,there's a fatal error.

Also same like #28161 bug

Windows trace is here:

IDL informations:

[id(0x000007), propget, helpstring ("property Attribute")]
HRESULT Attribute([in] BSTR bstrName, [out, retval] BSTR* pVal);
[id(0x000007), propput, helpstring ("property Attribute")]
HRESULT Attribute([in] BSTR bstrName, [in] BSTR pVal);

Reproduce code:
$headObj = new COM("Wmrmobjs.WMRMHeader");
$headObj->Attribute["RID"] = $rid;

Expected result:
The Attribute should be set.

Actual result:
Application terminated no output


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 00:01:32 2024 UTC