php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71688 Can not write to properties when using index
Submitted: 2016-02-29 11:31 UTC Modified: 2016-03-20 04:22 UTC
From: ko at sv01 dot de Assigned:
Status: No Feedback Package: COM related
PHP Version: 5.6.18 OS: Windows Server 2012R2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ko at sv01 dot de
New email:
PHP Version: OS:

 

 [2016-02-29 11:31 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-29 11:46 UTC] ko at sv01 dot de
looks like duplicate
https://bugs.php.net/bug.php?id=44578
 [2016-03-08 10:21 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-03-08 10:21 UTC] ab@php.net
Thanks for the report. Could you please bring a short but functional reproduce snippet?

Thanks.
 [2016-03-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Sep 24 22:05:52 2022 UTC