Annotation of embedaddon/php/ext/oci8/tests/lob_temp1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: closing temporary lobs
! 3: --SKIPIF--
! 4: <?php
! 5: $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
! 6: require(dirname(__FILE__).'/skipif.inc');
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: require dirname(__FILE__).'/connect.inc';
! 12:
! 13: $blob = oci_new_descriptor($c,OCI_D_LOB);
! 14: var_dump($blob->writeTemporary("test"));
! 15: var_dump($blob->load());
! 16: var_dump($blob->close());
! 17:
! 18: $c = oci_pconnect($user, $password, $dbase);
! 19:
! 20: $blob = oci_new_descriptor($c,OCI_D_LOB);
! 21: var_dump($blob->writeTemporary("test"));
! 22: var_dump($blob->load());
! 23: var_dump($blob->close());
! 24:
! 25: echo "Done\n";
! 26:
! 27: ?>
! 28: --EXPECTF--
! 29: bool(true)
! 30: string(4) "test"
! 31: bool(true)
! 32: bool(true)
! 33: string(4) "test"
! 34: bool(true)
! 35: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>