View Single Post

  #8 (permalink)  
Old 10-27-2006
Cyberwolf
 
Posts: n/a
Default Re: including a PHP file displays the file's content to the user agent (PHP 5.1)

Cyberwolf wrote:
> Rik wrote:
> > Cyberwolf wrote:
> > > Rik wrote:
> > >>
> > >> Even though I usually have no problem opening UTF-8 files, the file
> > >> seems corrupt here...
> > >>
> > >
> > > Can you confirm that it parses well with PHP 4?

> >
> > I can deny it....
> > Both PHP4 AND PHP5 parse the file, (I can print_r($data)), but the
> > character encoding is incorrect.
> >

>
> I'm using Suse 10.1/PHP 5.1.2.
>
> A manually compiled version of PHP 5.1.6 on the same machine seems to
> work well, so I guess it's a bug in PHP that has been fixed now or it
> is a Suse-specific issue.
>


I found what caused the problems I had. It happens when PHP is compiled
with --enable-zend-multibyte and the mbstring extension is enabled.

Cheers

Kristof

Reply With Quote