Skip to content

Commit 0c75465

Browse files
committed
Suppress 8.1 deprecation msg, fix indentation
1 parent 617f25d commit 0c75465

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

tests/fvt_017c_SelectLOBs.phpt

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ pdo_ibm: Select LOBs, including null and 0-length
2222
$create = 'CREATE TABLE animals (id INTEGER, my_clob clob, my_blob blob)';
2323
$result = $this->db->exec( $create );
2424

25-
$data = array (
26-
array(1, 'this is the clob that never ends...',
27-
'this is the blob that never ends...')
25+
$data = array (
26+
array(1, 'this is the clob that never ends...',
27+
'this is the blob that never ends...')
2828
,
29-
array(2, null,null)
29+
array(2, null,null)
3030
,
3131
array(3,'','')
32-
);
32+
);
3333

3434
$stmt = $this->db->prepare('insert into animals (id,my_clob,my_blob) values (?,?,?)');
3535

3636
print "inserting\n";
3737
foreach ($data as $row) {
38-
$stmt->execute($row);
38+
$stmt->execute($row);
3939
}
4040

4141
print "succesful\n";
@@ -45,19 +45,20 @@ pdo_ibm: Select LOBs, including null and 0-length
4545

4646
$rs = $stmt->execute();
4747

48-
$count = 0;
48+
$count = 0;
4949
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
5050
var_dump( $row['ID'] );
5151

52-
// this is a temporary workaround
53-
// until zero-length/lob stream
54-
// issue is fixed
55-
if ($count < 2) {
52+
// this is a temporary workaround
53+
// until zero-length/lob stream
54+
// issue is fixed
55+
if ($count < 2) {
5656
var_dump( $row['MY_CLOB'] );
57-
var_dump( $row['MY_BLOB'] );
58-
}
59-
var_dump(strpos($row['MY_CLOB'], 'lob'));
60-
$count++;
57+
var_dump( $row['MY_BLOB'] );
58+
}
59+
// suppressed deprecation message for NULL on 8.1
60+
var_dump(@strpos($row['MY_CLOB'], 'lob'));
61+
$count++;
6162
}
6263

6364
print "done\n";

0 commit comments

Comments
 (0)