~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/pgsql/tests/skipif.inc

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
// This script prints "skip" unless:
 
3
// * the pgsql extension is built-in or loadable, AND
 
4
// * there is a database called "test" accessible
 
5
//   with no username/password, AND
 
6
// * we have create/drop privileges on the entire "test"
 
7
//   database
 
8
 
 
9
include("config.inc");
 
10
 
 
11
if (!extension_loaded("pgsql")) {
 
12
    die("skip\n");
 
13
}
 
14
$conn = @pg_connect($conn_str);
 
15
if (!is_resource($conn)) {
 
16
    die("skip could not connect\n");
 
17
}
 
18
?>
 
 
b'\\ No newline at end of file'