bug34272.phpt 376 B

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