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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 39 = ?
Subscribe to this entry?

 
 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 21:03:39 2021 UTC