[PECL-CVS] [pecl-database-pdo_oci] main: Add composer.json for PIE, update package.xml and some tests

[email protected] (Sharad Chandran R)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-05T13:33:27+05:30

Commit: https://github.com/php/pecl-database-pdo_oci/commit/1278e9346d0f0955295b99ea672a0880c1f462fa
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/1278e9346d0f0955295b99ea672a0880c1f462fa.diff

Add composer.json for PIE, update package.xml and some tests

Changed paths:
  A  composer.json
  M  package.xml
  M  tests/oci_success_with_info.phpt
  M  tests/pdo_oci_debugdumpparams.phpt


Diff:

diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..8472a7f
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,33 @@
+{
+    "name": "pecl/pdo_oci",
+    "type": "php-ext",
+    "description": "Use the PDO_OCI extension to access Oracle Database via PHP Data Objects (PDO) APIs",
+    "keywords": ["pdo_oci", "pdo", "oracle", "database"],
+    "homepage": "https://pecl.php.net/package/PDO_OCI",
+    "license": "PHP",
+    "authors": [
+        {
+            "name": "Christopher Jones",
+            "email": "[email protected]",
+            "role": "Lead"
+        },
+        {
+            "name": "Sharad Chandran R",
+            "email": "[email protected]",
+            "role": "Lead"
+        }
+    ],
+    "require": {
+        "php": ">=8.3.0"
+    },
+    "php-ext": {
+        "extension-name": "pdo_oci",
+        "configure-options": [
+            {
+                "name": "with-pdo_oci",
+                "description": "Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client",
+                "needs-value": true
+            }
+        ]
+    }
+}
diff --git a/package.xml b/package.xml
index 9b9331f..0e5eb21 100644
--- a/package.xml
+++ b/package.xml
@@ -8,11 +8,11 @@ http://pear.php.net/dtd/package-2.0.xsd">
  <summary>Extension for Oracle Database</summary>
 
  <description>
-The PDO_OCI extension lets you access Oracle Database.
+Use the PDO_OCI extension to access Oracle Database via PHP Data Objects (PDO) APIs.
 
 Documentation is at https://www.php.net/pdo_oci
 
-Use &apos;pecl install pdo_oci&apos; to install for PHP 8.3.
+Use &apos;pecl install pdo_oci&apos; to install for PHP 8.3+.
 
 For older PHP versions, use php_pdo_oci.dll from the Windows PHP release bundle, or build from the PHP source code by running:
 
@@ -22,11 +22,12 @@ For older PHP versions, use php_pdo_oci.dll from the Windows PHP release bundle,
 
     make install
 
-To complete installation, add "extension=pdo_oci.so" to your php.ini file.
+To complete installation, add "extension=pdo_oci.so"  or "extension=php_pdo_oci.dll" (Windows) to your php.ini file.
 
 PHP is available from https://www.php.net/releases/  
 
-The PDO_OCI extension can be linked with Oracle client libraries from Oracle Database 11.2 or later.  These libraries are found in your database installation, or in the free Oracle Instant Client from https://www.oracle.com/database/technologies/instant-client.html Install the &quot;Basic&quot; or &quot;Basic Light&quot; Instant Client package. If building from source, then also install the SDK package.
+The PDO_OCI extension can be linked with Oracle Client libraries from Oracle Database 11.2 or later.  These libraries are found in your database installation, or in the free Oracle Instant Client packages from https://www.oracle.com/database/technologies/instant-client.html.
+Install the &quot;Basic&quot; or &quot;Basic Light&quot; Instant Client package. If building from source, then install the SDK package as well.
 
 Oracle&apos;s standard cross-version connectivity applies.  For example, PHP PDO_OCI linked with Oracle Client 19c can connect to Oracle Database 11.2 onward.  See Oracle&apos;s note &quot;Oracle Client / Server Interoperability Support&quot; (ID 207303.1) for details.
  </description>
@@ -37,6 +38,13 @@ Oracle&apos;s standard cross-version connectivity applies.  For example, PHP PDO
   <active>yes</active>
  </lead>
 
+ <lead>
+  <name>Sharad Chandran R</name>
+  <user>sharadchan87</user>
+  <email>[email protected]</email>
+  <active>yes</active>
+ </lead>
+
  <date>2024-08-21</date>
  <time>12:00:00</time>
 
@@ -50,7 +58,7 @@ Oracle&apos;s standard cross-version connectivity applies.  For example, PHP PDO
   </stability>
   <license uri="http://www.php.net/license">PHP</license>
   <notes>
-    This version is for PHP 8.3 only.
+    This version is for PHP 8.3 and 8.4 only.
 
     Requires Oracle Client libraries from 11.2 or later.
   </notes>
diff --git a/tests/oci_success_with_info.phpt b/tests/oci_success_with_info.phpt
index 8c8d559..30a1cce 100644
--- a/tests/oci_success_with_info.phpt
+++ b/tests/oci_success_with_info.phpt
@@ -15,7 +15,7 @@ PDOTest::skip();
 ?>
 --FILE--
 <?php
-
+require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
 function connectAsAdmin(): PDO {
     return PDOTest::test_factory(getenv('PDO_OCI_TEST_DIR').'/common.phpt');
 }
diff --git a/tests/pdo_oci_debugdumpparams.phpt b/tests/pdo_oci_debugdumpparams.phpt
index 52d13ef..68c9149 100644
--- a/tests/pdo_oci_debugdumpparams.phpt
+++ b/tests/pdo_oci_debugdumpparams.phpt
@@ -26,7 +26,7 @@ $stmt = $db->query("
 var_dump($stmt->debugDumpParams());
 ?>
 --EXPECTF--
-SQL: [844]%s
+SQL: [852]%s
     SELECT '
         Dumps the information contained by a prepared statement directly on the output. It will provide the SQL query in use, the number of parameters used (Params), the list of parameters, with their name, type (paramtype) as an integer, their key name or position, and the position in the query (if this is supported by the PDO driver, otherwise, it will be -1).
         This is a debug function, which dump directly the data on the normal output.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.