Bug #71688 [Opn->Fbk]: Can not write to properties when using index

From: Date: Tue, 08 Mar 2016 10:21:41 +0000
Subject: Bug #71688 [Opn->Fbk]: Can not write to properties when using index
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199665@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71688&edit=1

 ID:                 71688
 Updated by:         ab@php.net
 Reported by:        ko at sv01 dot de
 Summary:            Can not write to properties when using index
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            COM related
 Operating System:   Windows Server 2012R2
 PHP Version:        5.6.18
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for the report. Could you please bring a short but functional reproduce snippet?

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2016-02-29 11:46:18] ko at sv01 dot de

looks like duplicate
https://bugs.php.net/bug.php?id=44578

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

« previous php.bugs (#199665) next »