b47243_3.phpt 494 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Bug #47243 (Crash on exit with ZTS mode)
  3. --EXTENSIONS--
  4. oci8
  5. --SKIPIF--
  6. <?php
  7. $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
  8. require(__DIR__.'/skipif.inc');
  9. ?>
  10. --FILE--
  11. <?php
  12. require(__DIR__.'/connect.inc');
  13. // Run Test
  14. $s = oci_parse($c, "select cursor(select dummy from dual) from dual");
  15. oci_execute($s);
  16. oci_fetch_all($s, $r);
  17. // With explicit free and close
  18. oci_free_statement($s);
  19. oci_close($c);
  20. ?>
  21. ===DONE===
  22. --EXPECT--
  23. ===DONE===