Bug #72569 [NEW]: DOTNET/COM array parameters broke in PHP7 (regresion)

From: Date: Sat, 09 Jul 2016 20:08:34 +0000
Subject: Bug #72569 [NEW]: DOTNET/COM array parameters broke in PHP7 (regresion)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202149@lists.php.net to get a copy of this message
From:             deivid dot garcia dot garcia at gmail dot com
Operating system: Windows 10.1
PHP version:      7.0.8
Package:          *Compression related
Bug Type:         Bug
Bug description:DOTNET/COM array parameters broke in PHP7 (regresion)

Description:
------------
Arrays passed to .Net when calling .Net object methods using COM class
(probably DOTNET too but have not tested) arrive as empty arrays.

This was NOT happening in PHP < 7, it's a regression. Other simple types
are passed on properly (such as strings).

Test script:
---------------
The bug CANNOT be demonstrated without building a specific .Net dll that
takes an array as input.

In .Net:

public object MyNiceMethod(object[] parameters)
{
  // In PHP7 parameters comes in as an EMPTY array
  // when in PHP < 7 it was an array of string, integers and whatever
  // you passed in from PHP.
}

In PHP:

$a = new COM("{CLASSID}");
$a->MyNiceMethod(["string1", "string2", 56, "string3", [1, 2, 3]]);


-- 
Edit bug report at https://bugs.php.net/bug.php?id=72569&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72569&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72569&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72569&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72569&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72569&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72569&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72569&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72569&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72569&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72569&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72569&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72569&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72569&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72569&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72569&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72569&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72569&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72569&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72569&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72569&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#202149) next »