php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33049 strval crashes php
Submitted: 2005-05-17 23:05 UTC Modified: 2005-05-25 01:00 UTC
From: Chronial at web dot de Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.3.11 OS: Windows XP/Windows 2003
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Chronial at web dot de
New email:
PHP Version: OS:

 

 [2005-05-17 23:05 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-18 00:08 UTC] sniper@php.net
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


 [2005-05-25 01:00 UTC] 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC