From: pcdinh at gmail dot com Operating system: CentOS 5 PHP version: 5.2.4 PHP Bug Type: OCI8 related Bug description: oci_execute returns wring value when the first parameter is null
Description: ------------ OCI8 docs said: oci_execute returns TRUE on success or FALSE on failure. But when the first parameter is null, null is returned as well. That return value does not reflect the state of the execution: true or false. Reproduce code: --------------- oci_execute(null) Expected result: ---------------- oci_execute(null) should return false because null statement is abnormal. Developer should know that executing query on a null statement when developing a finance application with Oracle and PHp is dangerous. Actual result: -------------- oci_execute(null) return null wrongly -- Edit bug report at http://bugs.php.net/?id=42745&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42745&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42745&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42745&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42745&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42745&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42745&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42745&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42745&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42745&r=support Expected behavior: http://bugs.php.net/fix.php?id=42745&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42745&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42745&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42745&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42745&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42745&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42745&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42745&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42745&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42745&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42745&r=mysqlcfg