php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33863 the object PDOObj Row must be detroyed after use
Submitted: 2005-07-26 11:20 UTC Modified: 2005-07-26 13:36 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: lmelloul at free dot fr Assigned:
Status: Closed Package: PDO related
PHP Version: 5.1.0b3 OS: win32
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: lmelloul at free dot fr
New email:
PHP Version: OS:

 

 [2005-07-26 11:20 UTC] lmelloul at free dot fr
Description:
------------
Error Apache.
The PDO object row is not reinitialize.
I need to write $PDOobj = null after use.
Not necessary with other fetch mode.

I Use extension=php_pdo_oci.dll

Reproduce code:
---------------
$st = $db->prepare("SELECT * FROM NIVEAU4");
$st->execute();
while($PDOobj = $st->fetch(PDO_FETCH_LAZY)) {
    echo "$PDOobj->CODNIV4 - $PDOobj->LIBNIV4 <br />";
    $PDOobj = null; // this statement repare the bug
}


Expected result:
----------------
Liste of code

Actual result:
--------------
Ok when I write $PDOobj = null
othewise Apache.exe - Application error
l'instuction ? "0x00769c7a" emploie l'adresse m?more "0x00000017". la m?moire ne peut ?tre "read".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-26 11:26 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-07-26 13:32 UTC] lmelloul at free dot fr
OK the last php 5.1 DEV solve the bug
 [2005-07-26 13:36 UTC] tony2001@php.net
Ok, marking as closed then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC