bug79332.phpt 362 B

12345678910111213141516
  1. --TEST--
  2. Bug #79332 (php_istreams are never freed)
  3. --EXTENSIONS--
  4. com_dotnet
  5. --FILE--
  6. <?php
  7. $ph = new COMPersistHelper(null);
  8. try {
  9. $ph->LoadFromStream(fopen(__FILE__, 'r'));
  10. } catch (com_exception $ex) {
  11. // use hard-coded message to avoid localization issues
  12. echo "A com_exception has been thrown\n";
  13. }
  14. ?>
  15. --EXPECT--
  16. A com_exception has been thrown