ID:               24990
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to