#11340 [Com]: utf8_encode and utf8_decode go boom()
| From: | sex-movie1358 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:05:51 +0000 |
| Subject: | #11340 [Com]: utf8_encode and utf8_decode go boom() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62955@lists.php.net to get a copy of this message | ||
ID: 11340
Comment by: sex-movie1358 at hotmail dot com
Reported By: v dot sessink at nospam dot openoffice dot nl
Status: Closed
Bug Type: XML related
Operating System: Debian GNU/Linux 2.2 (Potato)
PHP Version: 4.0.5
New Comment:
<a href=http://a4a-wet-uniformblow.da.ru>movie
sex</a>
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 13:04:06] andy@php.net
no feedback after 35+ days.
------------------------------------------------------------------------
[2001-06-14 13:32:46] sniper@php.net
I can not reproduce this with PHP 4.0.6RC3.
Please try it:
http://www.php.net/~andi/php-4.0.6RC3.tar.gz
(if the link doesn't seem to work, just pump up the x in RCx . ie RC3
-> RC4 ..etc.)
------------------------------------------------------------------------
[2001-06-07 16:38:42] v dot sessink at nospam dot openoffice dot nl
for ($i;$i<1000;$i++) { $foo=utf8_encode('test' . $i);
$foo2=utf8_decode('test' . $i);
}
Gives random segfaults and various unwanted side effects (killing other
variables, messing with functions etc etc). The segfaults happen
randomly, you need to reload the page many times (20 to 30) to get it
to crash.
More serious pages (with many variables etc) will crash much sooner.
Loaded modules: xml, ldap and pgsql. My brother had, by pure incident,
also problems with xml today; he has a totally different setup (most
stuff compiled in, only Interbase module loaded) but was able to
reproduce the problem.
Problem also acknowledged with 4.0.3pl1.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11340&edit=1