php-src/ext/oci8/tests/lob_temp.phpt

40 lines
768 B
Plaintext
Raw Normal View History

2005-12-01 21:39:48 +08:00
--TEST--
temporary lobs
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
?>
2005-12-01 21:39:48 +08:00
--FILE--
<?php
require dirname(__FILE__).'/connect.inc';
$blob = oci_new_descriptor($c,OCI_D_LOB);
var_dump($blob->writeTemporary("test"));
var_dump($blob->load());
var_dump($blob->seek(0, SEEK_SET));
var_dump($blob->read(2));
$c = oci_pconnect($user, $password, $dbase);
$blob = oci_new_descriptor($c,OCI_D_LOB);
var_dump($blob->writeTemporary("test"));
var_dump($blob->load());
var_dump($blob->seek(0, SEEK_SET));
var_dump($blob->read(2));
echo "Done\n";
?>
--EXPECTF--
bool(true)
string(4) "test"
bool(true)
string(2) "te"
bool(true)
string(4) "test"
bool(true)
string(2) "te"
Done