From: scr34m at frontember dot hu
Operating system: Windows XP
PHP version: 5.2CVS-2007-11-27 (snap)
PHP Bug Type: COM related
Bug description: Fatal error when setting the value of COM object's Attribute
property
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
--
Edit bug report at http://bugs.php.net/?id=43432&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43432&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43432&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43432&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43432&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43432&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43432&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43432&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43432&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43432&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43432&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43432&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43432&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43432&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43432&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43432&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43432&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43432&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43432&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43432&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43432&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43432&r=mysqlcfg