php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35946 PHP reads the UTF-8 BOM and ruins the site!
Submitted: 2006-01-09 16:20 UTC Modified: 2006-02-09 15:59 UTC
From: php at mytrashmail dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 5.0.5 OS: *
Private report: No CVE-ID: None
 [2006-01-09 16:20 UTC] php at mytrashmail dot com
Description:
------------
There are already 2 bug reports about this, but you keep closing them, so I can't comment in either of them and I have new information to add to both. So I hope this bug report would be central place for both from now on.

http://bugs.php.net/bug.php?id=33198 (which has examples of the problem) shouldn't have been closed as PHP v5.0.5 was where I've experienced this problem for the first time! I've worked up to v5.0.3 without any problems.

But as soon as I upgraded to v5.0.5 in one site or started from fresh in v5.0.5 in another (same host), I kept randomally get those ??????.
Then again, that guy claimed his host did something to either v5.0.5 or to Apache and it solved it, so it should be fixable somehow! But how exactly...?

As for http://bugs.php.net/bug.php?id=22108 , well, my host does use enable-zend-multibyte (which is why this post shouldn't have been closed either).

Please take this bug more seriously, as it (randomally, but still) disables whole sites if they don't use English!

Thanks!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-09 18:19 UTC] sniper@php.net
Same reason as in bug #22108
 [2006-01-09 18:50 UTC] php at mytrashmail dot com
And what was that reason? That PHP v6 would fix this? But what about now? How come it worked in v5.0.3? How come that guy's host fixed it in his v5.0.5?

What you're telling me is to downgrade to v5.0.3 (without explaining me why it worked there) and never to update again until v6.0, which could take years!
 [2006-02-09 15:59 UTC] php at mytrashmail dot com
"Won't fix", ha? Well, that guy may have been right that his host fixed it.

See, my own host (Westhost - they deserve the credit) has added the following line to my php.ini :
mbstring.internal_encoding = UTF-8

And I no longer see ?????

So how about it? Will you add this line as a default or at least make it well known somehow?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC