#33863 [Opn->Csd]: the object PDOObj Row must be detroyed after use
| From: | tony2001@php.net | Date: | Tue, 26 Jul 2005 11:36:50 +0000 |
| Subject: | #33863 [Opn->Csd]: the object PDOObj Row must be detroyed after use | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82454@lists.php.net to get a copy of this message | ||
ID: 33863
Updated by: tony2001@php.net
Reported By: lmelloul at free dot fr
-Status: Open
+Status: Closed
Bug Type: PDO related
Operating System: win32
PHP Version: 5.1.0b3
New Comment:
Ok, marking as closed then.
Previous Comments:
------------------------------------------------------------------------
[2005-07-26 13:32:35] lmelloul at free dot fr
OK the last php 5.1 DEV solve the bug
------------------------------------------------------------------------
[2005-07-26 11:26:21] 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 11:20:10] 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".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33863&edit=1