ID:               19201
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           No Feedback
 Bug Type:         Reproducible crash
 Operating System: Digital Unix 4.0G
 PHP Version:      4.2.2
 New Comment:

Still crashes with PHP 4.3.0.

I do not have a license for dbx so I can't provide a backtrace, but
running the example above from the command line against the cgi binary
produces the following:

Unaligned access pid=25896 <php> va=0x1400c4cec pc=0x120244758
ra=0x1200bda78 inst=0xb4290000
Unaligned access pid=25896 <php> va=0x11fffdb7c pc=0x120236d64
ra=0x120237408 inst=0xb42c0000
Segmentation fault


Previous Comments:
------------------------------------------------------------------------

[2002-09-23 08:09:20] [EMAIL PROTECTED]

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.



------------------------------------------------------------------------

[2002-08-30 13:18:04] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to