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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 - 34 = ?
Subscribe to this entry?

 
 [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: Thu Dec 01 10:05:53 2022 UTC