php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10455 The method fetchRow can't return NULL when no more data.
Submitted: 2001-04-23 07:22 UTC Modified: 2002-05-15 00:00 UTC
From: nhitso at mail dot nhicb dot gov dot tw Assigned:
Status: No Feedback Package: OCI8 related
PHP Version: 4.0.4pl1 OS: Linux 2.2.14-6.0lp
Private report: No CVE-ID: None
 [2001-04-23 07:22 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 08:26 UTC] thies@php.net
does it still happen?

 [2002-05-15 00:00 UTC] 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC