diff options
| author | SVN Migration <svn@php.net> | 2006-04-26 11:08:11 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2006-04-26 11:08:11 +0000 |
| commit | 79f14997b447f5917f16138d00d9877f1eeabae0 (patch) | |
| tree | aac481f9ab3d2192e236780a3c2b5b7fe18e3144 /ext/com_dotnet | |
| parent | ad1bbaca04a802350884c07e2899a240d1a04e28 (diff) | |
| download | php-git-php-5.1.2.tar.gz | |
This commit was manufactured by cvs2svn to create tag 'php_5_1_2'.php-5.1.2
Diffstat (limited to 'ext/com_dotnet')
| -rw-r--r-- | ext/com_dotnet/tests/bug34272.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/com_dotnet/tests/bug34272.phpt b/ext/com_dotnet/tests/bug34272.phpt new file mode 100644 index 0000000000..3a65e2ce28 --- /dev/null +++ b/ext/com_dotnet/tests/bug34272.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #34272 (empty array onto COM object blows up) +--SKIPIF-- +<?php +if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?> +--FILE-- +<?php +error_reporting(E_ALL); + +try { + $dict = new COM("Scripting.Dictionary"); + $dict->add('foo', array()); + print sizeof($dict['foo'])."\n"; + $dict->add('bar', array(23)); + print sizeof($dict['bar'])." \n"; +} catch (Exception $e) { + print $e; +} +?> +--EXPECT-- +0 +1 |
