xref: /PHP-7.2/ext/pdo_oci/tests/bug41996.phpt (revision 86a493f4)
1--TEST--
2PDO OCI Bug #41996 (Problem accessing Oracle ROWID)
3--SKIPIF--
4<?php
5/* $Id$ */
6if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
7require dirname(__FILE__).'/../../pdo/tests/pdo_test.inc';
8PDOTest::skip();
9?>
10--FILE--
11<?php
12require 'ext/pdo/tests/pdo_test.inc';
13$db = PDOTest::test_factory('ext/pdo_oci/tests/common.phpt');
14
15$stmt = $db->prepare('SELECT rowid FROM dual');
16$stmt->execute();
17$row = $stmt->fetch();
18var_dump(strlen($row[0]) > 0);
19--EXPECTF--
20bool(true)
21