#33049 [Opn->Fbk]: strval crashes php
| From: | sniper@php.net | Date: | Tue, 17 May 2005 22:08:19 +0000 |
| Subject: | #33049 [Opn->Fbk]: strval crashes php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79117@lists.php.net to get a copy of this message | ||
ID: 33049
Updated by: sniper@php.net
Reported By: Chronial at web dot de
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows XP/Windows 2003
PHP Version: 4.3.11
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2005-05-17 23:05:11] Chronial at web dot de
Description:
------------
This bug appeared on 2 machines running the same script:
WinXp php 4.3.7, apache 2.0.53
Win2003 php 4.3.7, apache 2.0.47
the win2k3 machine was then upgraded to apache 2.0.54 and afterwards to
php 4.3.11 - the bug appeared on all 3 setups.
Running some scripts from the db trought strval() made apache crash -
adding "\r\n" to the strings before using strval() fixed the problem.
(code was $text = strval($text); changed to $text =
strval($text."\r\n");)
No reproduce code, for I think the bug will only appear with the rest
of the script around it. It was definitely strval what caused the bug
(dieing before this line worked, dieing in the next line didn't stop
apache from crashing)
The apache log said something about m_alloc (not sure, happend at work,
am at home now)
Reproduce code:
---------------
$text = strval($text);
Expected result:
----------------
obvious
Actual result:
--------------
crash
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33049&edit=1