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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nhitso at mail dot nhicb dot gov dot tw
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 19 06:01:30 2024 UTC