#19201 [NEW]: htmlspecialchars, et al crashes when called with quote_style
| From: | stromgt at slu dot edu | Date: | Fri, 30 Aug 2002 17:09:38 +0000 |
| Subject: | #19201 [NEW]: htmlspecialchars, et al crashes when called with quote_style | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-18270@lists.php.net to get a copy of this message | ||
From: stromgt@slu.edu
Operating system: Digital Unix 4.0G
PHP version: 4.2.2
PHP Bug Type: Reproducible crash
Bug description: htmlspecialchars, et al crashes when called with quote_style
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 bug report at http://bugs.php.net/?id=19201&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19201&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19201&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19201&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19201&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19201&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19201&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19201&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19201&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19201&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19201&r=globals