#36403 [NEW]: oci_execute() no longer supports OCI_DESCRIBE_ONLY
| From: | johnw at sussex dot ac dot uk | Date: | Wed, 15 Feb 2006 18:01:27 +0000 |
| Subject: | #36403 [NEW]: oci_execute() no longer supports OCI_DESCRIBE_ONLY | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-93298@lists.php.net to get a copy of this message | ||
From: johnw at sussex dot ac dot uk
Operating system: solaris 9
PHP version: 5.1.2
PHP Bug Type: OCI8 related
Bug description: oci_execute() no longer supports OCI_DESCRIBE_ONLY
Description:
------------
Supplying the constant OCI_DESCRIBE_ONLY as the second
argument (mode) to oci_execute() results in a warning,
and oci_execute() returning false.
Reproduce code:
---------------
The bug is caused by these lines of code in
php-5.1.2/ext/oci8/oci_statement.c
at line 1351 in the definition of
php_oci_statement_execute():
switch (mode) {
case OCI_COMMIT_ON_SUCCESS:
case OCI_DEFAULT:
/* only these two are allowed */
break;
default:
php_error_docref(NULL TSRMLS_CC, E_WARNING,
"Invalid execute mode given: %d", mode);
return 1;
break;
}
Expected result:
----------------
I would expect oci_execute() to pass the mode
OCI_DESCRIBE_ONLY on to the underlying OCI8 call.
I think it is very bad that this non- backward-
compatible change has been made without being documented
or announced anywhere. I am responsible for an
application that is used by several thousands of users
daily that relies on OCI_DESCRIBE_ONLY working.
--
Edit bug report at http://bugs.php.net/?id=36403&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36403&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36403&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36403&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36403&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36403&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36403&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36403&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36403&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36403&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36403&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36403&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36403&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36403&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36403&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36403&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36403&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36403&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36403&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36403&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36403&r=mysqlcfg