Annotation of embedaddon/php/ext/com_dotnet/tests/bug34272.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #34272 (empty array onto COM object blows up)
        !             3: --SKIPIF--
        !             4: <?php 
        !             5: if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
        !             6: --FILE--
        !             7: <?php 
        !             8: error_reporting(E_ALL);
        !             9: 
        !            10: try {
        !            11:        $dict = new COM("Scripting.Dictionary");
        !            12:        $dict->add('foo', array());
        !            13:        print sizeof($dict['foo'])."\n";
        !            14:        $dict->add('bar', array(23));
        !            15:        print sizeof($dict['bar'])." \n";
        !            16: } catch (Exception $e) {
        !            17:        print $e;
        !            18: }
        !            19: ?>
        !            20: --EXPECT--
        !            21: 0
        !            22: 1

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>