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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 02:01:28 2024 UTC