Bug #71688 [Com]: Can not write to properties when using index
Edit report at https://bugs.php.net/bug.php?id=71688&edit=1
ID: 71688
Comment by: ko at sv01 dot de
Reported by: ko at sv01 dot de
Summary: Can not write to properties when using index
Status: Open
Type: Bug
Package: COM related
Operating System: Windows Server 2012R2
PHP Version: 5.6.18
Block user comment: N
Private report: N
New Comment:
looks like duplicate
https://bugs.php.net/bug.php?id=44578
Previous Comments:
------------------------------------------------------------------------
[2016-02-29 11:31:24] ko at sv01 dot de
Description:
------------
When accessing a COM-application like SAP DI-Server, writing to a property (array) fails:
PHP:
$vCard->Properties[1] = 1; // PHP crash
$vCard->Properties(1); // works, returns correct value, no write possible
C#:
oBP.Properties[1]; # Get value
oBP.Properties[1] = 1; # Set value
This seems to be a problem how PHP connects properties with multiple values (PHP: array). It somehow
converts it to a method which works perfectly fine for reading but lacks write support.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71688&edit=1
Thread (4 messages)