Bug #18048 Updated: htmlentities crashes when called with ENT_QUOTES
| From: | vanbeek at q-factor dot nl | Date: | Sat, 29 Jun 2002 10:11:18 +0000 |
| Subject: | Bug #18048 Updated: htmlentities crashes when called with ENT_QUOTES | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12516@lists.php.net to get a copy of this message | ||
ID: 18048
Updated by: vanbeek@q-factor.nl
Reported By: vanbeek@q-factor.nl
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: SunOS 5.8
PHP Version: 4.2.1
Assigned To: derick
New Comment:
OK, I placed the suggested script on the server we're
talking about:
http://www.scheltema.nl/phpinfo.php
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 06:06:13] derick@php.net
Make a script with <?php phpinfo(); ?> and request it through your
browser, it should show it in the top section (configure command).
Derick
------------------------------------------------------------------------
[2002-06-29 05:30:46] vanbeek@q-factor.nl
This is one of the header in the server's http response:
Server: Apache/1.3.26 (Unix) PHP/4.2.1 mod_ssl/2.8.9
OpenSSL/0.9.6d
uname -a yields:
SunOS vhost-01.cust.asmr-01.energis-idc.net 5.8
Generic_108528-13 sun4u sparc
How may I find out which options were used when building
MOD_PHP?
Greetings,
Pieter.
------------------------------------------------------------------------
[2002-06-28 14:49:38] derick@php.net
I still can not reproduce this on Linux with PHP 4.1.x, 4.2.x or
4.3.0-dev on Linux and 4.2.0 on Sun OS 5.8/intel all in both CLI and
apache module.
Which version of apache do you use, and which platform do you have?
(sparc or intel)
Derick
------------------------------------------------------------------------
[2002-06-28 11:40:31] vanbeek@q-factor.nl
A very short reproduction script:
<?php
for ($i = 0; $i < 1000; $i++)
echo "$i\n";
echo htmlentities ('hello world!', ENT_QUOTES);
?>
When called from the browser, this script yields all values van 0 to
984, then stops. The fact that the values from 985 to 999 are missing
would indicate that apache doesn't get to flush its buffers (and has
indeed crashed).
As i am not the systems admin, I cannot find out much more. I can see
that the server process doesn't crash as a whole, but it might be
possible that a thread crashes (if that is even possible under SunOS;
under linux a crashing thread takes down the process as well)
You can see this happening at http://www.scheltema.nl/test.php
Greetings,
Pieter van Beek
------------------------------------------------------------------------
[2002-06-28 11:21:42] derick@php.net
I can not reproduce this. Can you see if apache crashes, and if yes
make a backtrace?
And can you provide a short reproducing script?
Derick
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18048
--
Edit this bug report at http://bugs.php.net/?id=18048&edit=1