1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
This commit is contained in:
Wez Furlong
2004-04-22 14:29:33 +00:00
parent 91dc1a516a
commit 696663bc3d

27
ext/com_dotnet/tests/27974.phpt Executable file
View File

@@ -0,0 +1,27 @@
--TEST--
COM: mapping a safearray
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
--FILE--
<?php // $Id$
error_reporting(E_ALL);
try {
$v = new VARIANT(array("123", "456", "789"));
var_dump($v);
print $v[0] . "\n";
print $v[1] . "\n";
print $v[2] . "\n";
echo "OK!";
} catch (Exception $e) {
print $e;
}
?>
--EXPECT--
object(variant)#1 (0) {
}
123
456
789
OK!