#19201 [Fbk->NoF]: htmlspecialchars, et al crashes when called with quote_style

From: Date: Mon, 23 Sep 2002 13:09:20 +0000
Subject: #19201 [Fbk->NoF]: htmlspecialchars, et al crashes when called with quote_style
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20104@lists.php.net to get a copy of this message
ID: 19201 Updated by: sniper@php.net Reported By: stromgt@slu.edu -Status: Feedback +Status: No Feedback Bug Type: Reproducible crash Operating System: Digital Unix 4.0G PHP Version: 4.2.2 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-08-30 13:18:04] derick@php.net Forgot to say that I can not reproduce this with php 4.2.0-dev (march 7) or php 4.3.0-dev (august 25). They both show this result: &amp;&quot;&#039;&lt;&gt; ------------------------------------------------------------------------ [2002-08-30 13:15:55] derick@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#20104) next »