#42743 [Opn->Bgs]: oci_num_rows returns wrong value when parameter 1 is null

From: Date: Tue, 02 Oct 2007 10:24:26 +0000
Subject: #42743 [Opn->Bgs]: oci_num_rows returns wrong value when parameter 1 is null
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118067@lists.php.net to get a copy of this message
ID: 42743 Updated by: tony2001@php.net Reported By: pcdinh at gmail dot com -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: CentOs 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. See http://bugs.php.net/bug.php?id=42745 Previous Comments: ------------------------------------------------------------------------ [2007-09-24 09:26:31] pcdinh at gmail dot com Description: ------------ OCI8 said oci_num_rows returns TRUE on success or FALSE on failure. But when the first parameter is null, oci_num_rows returns null. Reproduce code: --------------- oci_num_rows(null) Expected result: ---------------- oci_num_rows(null) should return false because parameter must be a statement/resource. null statement is abnormal Actual result: -------------- oci_num_rows(null) return null ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42743&edit=1

« previous php.bugs (#118067) next »