#40479 [NoF->Fbk]: zend_mm_heap corrupted
| From: | felipe@php.net | Date: | Sun, 15 Jun 2008 11:29:29 +0000 |
| Subject: | #40479 [NoF->Fbk]: zend_mm_heap corrupted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125787@lists.php.net to get a copy of this message | ||
ID: 40479
Updated by: felipe@php.net
Reported By: rrossi at maggioli dot it
-Status: No Feedback
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Suse Linux 9.0
PHP Version: 5.2.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-06-15 09:43:22] akdeiva at qxsystems dot com
Hi,
i too got the same issue and this is how the code works,
I am having some scripts to parse the HTML data and wherein i am having
part of the code as ,
$replaced_key = strtolower(str_replace("%", "percent", $key));
$replaced_key = str_replace(".", "", $replaced_key);
$key = str_replace(" ", "_", $replaced_key);
When i have the above code with the same variable name,
$key = strtolower(str_ireplace("%", "percent", $key));
$key = str_ireplace(".", "", $key);
$key = str_ireplace(" ", "_", $key);
I get the "zend_mm_heap corrupted" error wherein when changed the code
to the above way, it works fine.
------------------------------------------------------------------------
[2008-05-20 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-05-12 19:16:48] felipe@php.net
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.
------------------------------------------------------------------------
[2008-05-12 19:09:38] dbuckoff at tera-com dot com
Hi,
I have the same problem, my php version is 5.2.6:
function crash() {
mysql_connect( "localhost" );
}
:)
------------------------------------------------------------------------
[2008-01-18 22:28:04] klassicd at gmail dot com
php -v
PHP 5.2.1 (cli) (built: Nov 28 2007 23:14:55)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
function crash()
{
$row = 1;
$handle = fopen("f.csv", "r");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$num = count($data);
echo "<p> $num fields in line $row: <br /></p>\n";
$row++;
for ($c=0; $c < $num; $c++) {
echo $data[$c] . "<br />\n";
}
}
fclose($handle);
}
f.csv has 3000 lines of
"Email","Name"
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40479
--
Edit this bug report at http://bugs.php.net/?id=40479&edit=1