#33863 [NEW]: the object PDOObj Row must be detroyed after use

From: Date: Tue, 26 Jul 2005 09:20:11 +0000
Subject: #33863 [NEW]: the object PDOObj Row must be detroyed after use
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82447@lists.php.net to get a copy of this message
From: lmelloul at free dot fr Operating system: win32 PHP version: 5.1.0b3 PHP Bug Type: PDO related Bug description: the object PDOObj Row must be detroyed after use 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 bug report at http://bugs.php.net/?id=33863&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33863&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33863&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33863&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33863&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33863&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33863&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33863&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33863&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33863&r=support Expected behavior: http://bugs.php.net/fix.php?id=33863&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33863&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33863&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33863&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33863&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33863&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33863&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33863&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33863&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33863&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33863&r=mysqlcfg

« previous php.bugs (#82447) next »