#10455 [Com]: The method fetchRow can't return NULL when no more data.
| From: | nong11yjyygy at yahoo dot com | Date: | Mon, 20 Mar 2006 05:02:01 +0000 |
| Subject: | #10455 [Com]: The method fetchRow can't return NULL when no more data. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94591@lists.php.net to get a copy of this message | ||
ID: 10455
Comment by: nong11yjyygy at yahoo dot com
Reported By: nhitso at mail dot nhicb dot gov dot tw
Status: No Feedback
Bug Type: OCI8 related
Operating System: Linux 2.2.14-6.0lp
PHP Version: 4.0.4pl1
New Comment:
very good
http://www.11nong.com
Previous Comments:
------------------------------------------------------------------------
[2002-05-15 00:00:03] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2002-04-13 08:26:20] thies@php.net
does it still happen?
------------------------------------------------------------------------
[2001-04-23 07:22:38] nhitso at mail dot nhicb dot gov dot tw
<?php
$DSN="oci8://scott:gods";
require_once("DB.php");
$myDB = new DB;
$myOBJ = $myDB -> connect($DSN);
if ($myDB -> isError($myOBJ))
{ echo $myOBJ;
return NULL;
}
$resultOBJ = $myOBJ -> query("select * from addr_id");
if ($myDB -> isError($resultOBJ))
{ echo $resultOBJ;
return NULL;
}
else
{
while( $row = $resultOBJ->fetchRow() )
{ echo "$row[0] $row[1] $row[2] $row[3] $row[4] $row[5] $row[6]
$row[7]\n"
;
}
}
?>
The result:
0 1234 2313 1233 RD. 68¸¹ R.O.C. TAIWAN
Warning: OCIFetchInto: ORA-01002: Â^¨úªº¶¶§Ç¤£¹ï in DB/oci8.php on line
206
Warning: OCIFetchInto: ORA-01002: Â^¨úªº¶¶§Ç¤£¹ï in DB/oci8.php on line
206
Warning: OCIFetchInto: ORA-01002: Â^¨úªº¶¶§Ç¤£¹ï in DB/oci8.php on line
206
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10455&edit=1