summaryrefslogtreecommitdiff
path: root/ext/pdo_oci/tests/bug41996.phpt
blob: ac8e35fe604270849dda78518299de42f9ded922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
PDO OCI Bug #41996 (Problem accessing Oracle ROWID)
--SKIPIF--
<?php
/* $Id$ */
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
require dirname(__FILE__).'/../../pdo/tests/pdo_test.inc';
PDOTest::skip();
?>
--FILE--
<?php
require 'ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory('ext/pdo_oci/tests/common.phpt');

$stmt = $db->prepare('SELECT rowid FROM dual');
$stmt->execute();
$row = $stmt->fetch();
var_dump(strlen($row[0]) > 0);
--EXPECTF--
bool(true)