#39825 [Opn->Fbk]: foreach produces memory error
| From: | tony2001@php.net | Date: | Mon, 18 Dec 2006 10:38:02 +0000 |
| Subject: | #39825 [Opn->Fbk]: foreach produces memory error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106479@lists.php.net to get a copy of this message | ||
ID: 39825
Updated by: tony2001@php.net
Reported By: krejci at ped dot muni dot cz
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: Unknown/Other Function
Operating System: WinXP, Win2003
PHP Version: 5CVS-2006-12-13 (snap)
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-12-13 23:29:22] krejci at ped dot muni dot cz
Description:
------------
Our production site with LMS Moodle is haunted by this PHP crash since
upgrade to php 5.20.
tested on:
IIS 5.1, IIS 6.0
PHP 5.20, PHP 5.21dev 2006-12-13
all modules except php_mysql.dll turned off
I was able to track it down to one "foreach" line, that is processing
mysql object.
Reproduce code:
---------------
http://moodlinka.ped.muni.cz/data/moodle2.sql.txt
http://moodlinka.ped.muni.cz/data/mod2.php.txt
Expected result:
----------------
standard error message
Actual result:
--------------
ISAPI:
PHP has encountered an Access Violation at 010256E3
CGI:
php-cgi.exe - Application Error
The instruction at "0x10015613" referenced memory at "0x00000001". The
memory could not be "read".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39825&edit=1