From: [EMAIL PROTECTED]
Operating system: Linux 2.2.14-6.0lp
PHP version: 4.0.4pl1
PHP Bug Type: OCI8 related
Bug description: The method fetchRow can't return NULL when no more data.
<?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 Bug report at: http://bugs.php.net/?id=10455&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]