#24990 [Opn->Csd]: Apache segfaults when combination of functions are applied to empty variable
| From: | sniper@php.net | Date: | Fri, 08 Aug 2003 22:21:35 +0000 |
| Subject: | #24990 [Opn->Csd]: Apache segfaults when combination of functions are applied to empty variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-45602@lists.php.net to get a copy of this message | ||
ID: 24990
Updated by: sniper@php.net
Reported By: jacob at keystreams dot com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Mandrake Linux; 2.4.8-26mdk
PHP Version: 4.3.1
New Comment:
Cannot reproduce using latest CVS (PHP 4.3.3RC3)
Previous Comments:
------------------------------------------------------------------------
[2003-08-08 17:07:56] jacob at keystreams dot com
Description:
------------
When attempting to decode a string using three functions at once
(utf8_decode, html_entity_decode, stripslashes) and if the string is
null, Apache reports a segfault error and a general 'The page cannot be
displayed' error page is shown or the last working client-side cached
version of the page.
Running Apache 1.3.27 w/ mod_rewrite.
PHP ./configure: ./configure --with-mysql=/usr --with-xml
--enable-track-vars --with-apache=../apache_1.3.27 --with-curl=/usr/lib
--with-dom --with-zlib
Reproduce code:
---------------
<?php
$string = null;
$string = utf8_decode(html_entity_decode(stripslashes($string)));
echo $string;
?>
Expected result:
----------------
It is expected that a decoded string will be returned and echo'd to the
browser.
Actual result:
--------------
[no backtrace available] Web browser displays nothing or last cached
page results. Apache error_log shows the following:
[Fri Aug 8 15:57:16 2003] [notice] child pid 420 exit signal
Segmentation fault (11)
This error is reproduced successfully everytime.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24990&edit=1