From:             Chronial at web dot de
Operating system: Windows XP/Windows 2003
PHP version:      4.3.11
PHP Bug Type:     Reproducible crash
Bug description:  strval crashes php

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 bug report at http://bugs.php.net/?id=33049&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33049&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33049&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33049&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33049&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33049&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33049&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33049&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33049&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33049&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33049&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33049&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33049&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33049&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33049&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33049&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33049&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33049&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33049&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33049&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33049&r=mysqlcfg

Reply via email to