blob: 78d3419b6042c66044c503624cb72bfb3495ae66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--TEST--
PDO OCI Bug #33707
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
require 'ext/pdo_oci/tests/config.inc';
require 'ext/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');
$db->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_SILENT);
$rs = $db->query('select blah from a_table_that_doesnt_exist');
var_dump($rs);
var_dump($db->errorInfo());
--EXPECTF--
bool(false)
array(3) {
[0]=>
string(5) "HY000"
[1]=>
int(942)
[2]=>
string(113) "OCIStmtExecute: ORA-00942: table or view does not exist
(%s:%d)"
}
|