[PECL-CVS] [pecl-database-pdo_oci] pdo_oci_blob_fetchall_fix: Merge branch 'main' into pdo_oci_blob_fetchall_fix

[email protected] (Sharad Chandran R) Fri, 9 Jan 2026 04:26:56 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-09T09:56:22+05:30

Commit: https://github.com/php/pecl-database-pdo_oci/commit/2048e93e8e85411467a6cea6039b5df0d499b5e4
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/2048e93e8e85411467a6cea6039b5df0d499b5e4.diff

Merge branch 'main' into pdo_oci_blob_fetchall_fix

Changed paths:
  A  tests/bug33707.phpt
  M  README.md


Diff:

diff --git a/README.md b/README.md
index 04d9e5b..90350e3 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,10 @@ Documentation is at https://www.php.net/pdo_oci
 Installation
 ------------
 
+**PECL**
+
+The PDO_OCI extension is available in the PECL repository [here](https://pecl.php.net/package/PDO_OCI).
+
 Use `pecl install pdo_oci` to install for PHP 8.3 and newer versions.
 
 For older PHP versions, use php_pdo_oci.dll from the Windows PHP release
@@ -25,6 +29,15 @@ make install
 To complete installation, add "extension=pdo_oci.so" or
 "extension=php_pdo_oci.dll" (Windows) to your php.ini file.
 
+**PIE**
+
+The PHP OCI8 extension is also available in the PIE Packagist repository [here](https://packagist.org/packages/pecl/pdo_oci).
+
+To install from PIE, use the [pie](https://github.com/php/pie/releases) utility and run:
+```
+pie install pecl/pdo_oci
+```
+
 Tests
 -----
 
diff --git a/tests/bug33707.phpt b/tests/bug33707.phpt
new file mode 100644
index 0000000..c47fef8
--- /dev/null
+++ b/tests/bug33707.phpt
@@ -0,0 +1,31 @@
+--TEST--
+PDO OCI Bug #33707 (Errors in select statements not reported)
+--EXTENSIONS--
+pdo
+pdo_oci
+--SKIPIF--
+<?php
+require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
+PDOTest::skip();
+?>
+--FILE--
+<?php
+require_once(getenv('PDO_TEST_DIR').'/pdo_test.inc');
+$db = PDOTest::test_factory(getenv('PDO_OCI_TEST_DIR').'/common.phpt');
+$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
+
+$rs = $db->query('select blah from a_table_that_does_not_exist');
+var_dump($rs);
+var_dump($db->errorInfo());
+?>
+--EXPECTF--
+bool(false)
+array(3) {
+  [0]=>
+  string(5) "HY000"
+  [1]=>
+  int(942)
+  [2]=>
+  string(%d) "OCIStmtExecute: ORA-00942: table or view %Sdoes not exist
+ (%s:%d)"
+}