[PECL-CVS] [pecl-database-pdo_oci] pdo_oci_param_int_fix: Merge branch 'main' into pdo_oci_param_int_fix
[email protected] (Sharad Chandran R) Fri, 9 Jan 2026 05:38:40 +0000
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-09T11:08:16+05:30
Commit: https://github.com/php/pecl-database-pdo_oci/commit/7c193f740efe5b9fba4de3522ee9f5ba3f1cbe4e
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/7c193f740efe5b9fba4de3522ee9f5ba3f1cbe4e.diff
Merge branch 'main' into pdo_oci_param_int_fix
Changed paths:
A tests/bug33707.phpt
M README.md
M tests/bug57702.phpt
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)"
+}
diff --git a/tests/bug57702.phpt b/tests/bug57702.phpt
index 82e5d56..f2d9c3c 100644
--- a/tests/bug57702.phpt
+++ b/tests/bug57702.phpt
@@ -148,7 +148,7 @@ print "done\n";
?>
--CLEAN--
<?php
-require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
+require_once(getenv('PDO_TEST_DIR').'/pdo_test.inc');
$db = PDOTest::test_factory(getenv('PDO_OCI_TEST_DIR').'/common.phpt');
$db->exec("begin
execute immediate 'drop table test57702';