|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11340 utf8_encode and utf8_decode go boom()
Submitted: 2001-06-07 16:38 UTC Modified: 2001-07-22 13:04 UTC
From: v dot sessink at nospam dot openoffice dot nl Assigned:
Status: Closed Package: XML related
PHP Version: 4.0.5 OS: Debian GNU/Linux 2.2 (Potato)
Private report: No CVE-ID: None
 [2001-06-07 16:38 UTC] 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 13:32 UTC]
I can not reproduce this with PHP 4.0.6RC3.
Please try it:

(if the link doesn't seem to work, just pump up the x in RCx . ie RC3 -> RC4 ..etc.)  

 [2001-07-22 13:04 UTC]
no feedback after 35+ days.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 22:03:34 2021 UTC