mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
b7ec6f90e0
- fix bug #37588 (COM Property propputref converts to PHP function and can't be accesed): com_handlers.c - fix bug #39596 (Creating Variant of type VT_ARRAY): com_variant.c - add tests
24 lines
415 B
PHP
24 lines
415 B
PHP
--TEST--
|
|
Bug #39596 (Creating Variant of type VT_ARRAY)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL);
|
|
|
|
try {
|
|
$binding_string = array('aaa','bbb','ccc');
|
|
$v = new VARIANT( $binding_string, VT_ARRAY );
|
|
foreach ($v AS $element) {
|
|
print $element."\n";
|
|
}
|
|
} catch (Exception $e) {
|
|
print $e;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
aaa
|
|
bbb
|
|
ccc
|