bug77578.phpt 528 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #77578 (Crash when php unload)
  3. --EXTENSIONS--
  4. com_dotnet
  5. --FILE--
  6. <?php
  7. // To actually be able to verify the crash during shutdown on Windows, we have
  8. // to execute a PHP subprocess, and check its exit status.
  9. $php = PHP_BINARY;
  10. $ini = php_ini_loaded_file();
  11. $iniopt = $ini ? "-c $ini" : '';
  12. $command = "$php $iniopt -d extension=com_dotnet -d com.autoregister_typelib=1 -r \"new COM('WbemScripting.SWbemLocator');\"";
  13. exec($command, $output, $status);
  14. var_dump($output, $status);
  15. ?>
  16. --EXPECT--
  17. array(0) {
  18. }
  19. int(0)