#19201 [Opn->Fbk]: htmlspecialchars, et al crashes when called with quote_style
| From: | derick@php.net | Date: | Fri, 30 Aug 2002 17:15:55 +0000 |
| Subject: | #19201 [Opn->Fbk]: htmlspecialchars, et al crashes when called with quote_style | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18271@lists.php.net to get a copy of this message | ||
ID: 19201
Updated by: derick@php.net
Reported By: stromgt@slu.edu
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Digital Unix 4.0G
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-08-30 13:09:37] stromgt@slu.edu
The htmlspecialchars and htmlentities functions crash php(typical
"document contains no data" error) when called with the second
parameter, quote_style (ENT_COMPAT, ENT_QUOTES, ENT_NOQUOTES).
If called without the second parameter, these functions return the
expected results.
May be related to Bug #18048.
Sample Script:
<?php
$string = "&\"'<>";
$temp = htmlspecialchars($string,ENT_QUOTES);
echo $temp;
?>
Configuration Command:
'--with-apache=/usr/src/apache_1.3.26' '--with-mysql'
'--with-gd=/usr/local' '--with-freetype-dir=/usr/local'
'--with-t1lib=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-pdflib=/usr/local'
'--with-openssl=/usr/local/ssl' '--with-zlib-dir=/usr/local'
'--with-java=/usr/opt/java131' '--with-ldap=/usr/local'
'--with-imap=/usr/local/lib' '--with-mcrypt=/usr/local/lib/libmcrypt'
'--enable-track-vars' '--enable-ftp' '--enable-sockets'
'--enable-trans-sid'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19201&edit=1