[PECL-CVS] [pecl-database-oci8] main: PHP 8.6: WRONG_PARAM_COUNT has been removed in favour of zend_wrong_param_count() + RETURN_THROWS()

[email protected] (Shivam Mathur)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Shivam Mathur (shivammathur)
Pusher: sharadraju
Date: 2025-12-19T01:18:02+05:30

Commit: https://github.com/php/pecl-database-oci8/commit/f31ac3c46cddcb5f8df36fe08c49f6402fc060a3
Raw diff: https://github.com/php/pecl-database-oci8/commit/f31ac3c46cddcb5f8df36fe08c49f6402fc060a3.diff

PHP 8.6: WRONG_PARAM_COUNT has been removed in favour of zend_wrong_param_count() + RETURN_THROWS()

Changed paths:
  M  oci8_interface.c


Diff:

diff --git a/oci8_interface.c b/oci8_interface.c
index 2b1117d..3858035 100644
--- a/oci8_interface.c
+++ b/oci8_interface.c
@@ -1938,7 +1938,8 @@ PHP_FUNCTION(oci_password_change)
 		}
 		RETURN_RES(connection->id);
 	}
-	WRONG_PARAM_COUNT;
+	zend_wrong_param_count();
+    RETURN_THROWS();
 }
 /* }}} */
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.