From 716d22a8f640ba219c01f85e1e31046f9f4470d8 Mon Sep 17 00:00:00 2001
From: Antony Dovgal <tony2001@php.net>
Date: Wed, 15 Feb 2006 20:44:55 +0000
Subject: [PATCH] MFH: fix #36403 (oci_execute() no longer supports
 OCI_DESCRIBE_ONLY)

---
 NEWS                      | 2 ++
 ext/oci8/oci8_statement.c | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index a86745fc5c..16fcce557d 100644
--- a/NEWS
+++ b/NEWS
@@ -22,6 +22,8 @@ PHP                                                                        NEWS
 - Added ReflectionClass::newInstanceArgs($args). (Marcus)
 - Added imap_savebody() that allows message body to be written to a file.
   (Mike)
+- Fixed bug #36403 (oci_execute() no longer supports OCI_DESCRIBE_ONLY). 
+  (Tony)
 - Fixed bug #36400 (Custom 5xx error does not return correct HTTP response 
   error code). (Tony)
 - Fixed bug #36345 (PDO/MySQL problem loading BLOB over 1MB). (Ilia)
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index 5f6559fcf4..c0e865bd16 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -282,8 +282,9 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode TSRMLS_DC)
 
 	switch (mode) {
 		case OCI_COMMIT_ON_SUCCESS:
+		case OCI_DESCRIBE_ONLY:
 		case OCI_DEFAULT:
-			/* only these two are allowed */
+			/* only these are allowed */
 			break;
 		default:
 			php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid execute mode given: %d", mode);
-- 
2.40.0