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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 - 18 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon May 06 18:01:35 2024 UTC