~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to ext/oci8/tests/bind_char_1.phpt

  • Committer: Stas Verberkt
  • Date: 2011-02-01 09:27:15 UTC
  • Revision ID: legolas@legolasweb.nl-20110201092715-yq052iu2yl4i2eyg
Inserted PHP 5.3.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
$sv = preg_match('/Release 1[01]\.2\./', $sv, $matches);
9
9
if ($sv !== 1) {
10
10
        die ("skip expected output only valid when using Oracle 10gR2 or 11gR2 databases");
 
11
} else {
 
12
    ob_start();
 
13
    phpinfo(INFO_MODULES);
 
14
    $phpinfo = ob_get_clean();
 
15
    $iv = preg_match('/Oracle .*Version => 1[1]\./', $phpinfo);
 
16
    if ($iv != 1) {
 
17
        die ("skip test expected to work only with Oracle 11g or greater version of client");
 
18
    }
11
19
}
12
20
?>
13
21
--FILE--
14
22
<?php
15
23
 
16
 
// Note: expected output is valid for 32bit clients to 32bit 10gR2 XE or 11.2.0.1 64bit DBs.
17
 
// It will diff on the undefined cases with a 32bit 11.2.0.1 DB
18
 
 
19
24
require(dirname(__FILE__).'/connect.inc');
20
25
 
21
26
// Initialization