|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 22:00:01 2025 UTC |
Description: ------------ The COM runs well in ASP: <%asp 'The Attribute property specifies and retrieves name-value pairs. ' 'Syntax: ' '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: http://scr34m.frontember.hu/stuff/CrashHang_Report__PID_292__11272007221846765.mht 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: --------------- <?php $rid=0; $headObj = new COM("Wmrmobjs.WMRMHeader"); $headObj->Attribute["RID"] = $rid; ?> Expected result: ---------------- The Attribute should be set. Actual result: -------------- Application terminated no output