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