From: ben at grinvalds dot net Operating system: Windows XP PHP version: 5.0.0RC3 PHP Bug Type: OCI8 related Bug description: reference memory error running script
Description: ------------ I have been testing my code in PHP5 and have been getting regular Apache.exe Application errors. When I run the script below a few times, I will consistantly get reference memory errors. Even after I re-boot my system. My application makes many calls to an Oracle database. I'm not sure if this is specifically related to OCI or if it is a more general PHP memory issue. Environment: OS: Windows XP Professional with SP1 Server: Apache 1.3.31 (Win32) DB: Oracle 8.4.7 Reproduce code: --------------- <?php $conn = oci_connect("scott", "tiger", "your_host_name"); for ($p=0; $p <= 500; $p++) { $stmt = oci_parse($conn, "select ENAME from emp"); oci_execute($stmt); $i = 0; while (oci_fetch($stmt)) { $i++; $name = oci_result($stmt, "ENAME"); echo $name . "<br>"; } echo "<br>"; echo $i . " Records Selected. Count:" . $p; echo "<br><br>"; } oci_free_statement($stmt); oci_close($conn); ?> Expected result: ---------------- I should be able to run this without encountering any Apache.exe Application error. Actual result: -------------- The error message that I am receiving is: The instruction at "0x6042fdc2" refereced memory at "0x00000010". The memory could not be "read". -- Edit bug report at http://bugs.php.net/?id=28924&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28924&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28924&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28924&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28924&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28924&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28924&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28924&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28924&r=support Expected behavior: http://bugs.php.net/fix.php?id=28924&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28924&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28924&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28924&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28924&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28924&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28924&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28924&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28924&r=float