Current Path : /usr/opt/php56/share/pear/test/DB/tests/driver/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/php56/share/pear/test/DB/tests/driver/21freeResult.phpt |
--TEST-- DB_driver::freeResult --SKIPIF-- <?php require_once dirname(__FILE__) . '/skipif.inc'; ?> --FILE-- <?php require_once dirname(__FILE__) . '/mktable.inc'; $res = $dbh->query('SELECT * FROM phptest'); if (DB::isError($res)) { echo "Result is a DB_Error.\n"; drop_table($dbh, 'phptest'); exit; } if ($dbh->freeResult($res->result)) { echo "Result was freed successfully.\n"; } else { echo "Error freeing result.\n"; } drop_table($dbh, 'phptest'); ?> --EXPECT-- Result was freed successfully.