Bug #71688 [NEW]: Can not write to properties when using index
From: ko at sv01 dot de
Operating system: Windows Server 2012R2
PHP version: 5.6.18
Package: COM related
Bug Type: Bug
Bug description:Can not write to properties when using index
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 bug report at https://bugs.php.net/bug.php?id=71688&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71688&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71688&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71688&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71688&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71688&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71688&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71688&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71688&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71688&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71688&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71688&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71688&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71688&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71688&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71688&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71688&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71688&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71688&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71688&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71688&r=mysqlcfg
Thread (4 messages)
- ko at sv01 dot de