ID:               42745
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pcdinh at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         OCI8 related
 Operating System: CentOS 5
 PHP Version:      5.2.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Most of the functions in PHP return NULL if incorrect parameters or
incorrect number of parameters were passed.
I won't change this one place and leave other places unchanged, in the
same time changing it all over the code makes no sense to me, we got
other things to do.


Previous Comments:
------------------------------------------------------------------------

[2007-09-24 09:36:09] pcdinh at gmail dot com

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 this bug report at http://bugs.php.net/?id=42745&edit=1

Reply via email to